Browse Source

add index recorder

main
ghost 4 months ago
parent
commit
94c8aaa23c
  1. 14
      src/index.php

14
src/index.php

@ -396,11 +396,21 @@ for ($block = $state; $block <= $blocks; $block++) @@ -396,11 +396,21 @@ for ($block = $state; $block <= $blocks; $block++)
);
}
// Add index record @TODO
// Add index record
$index->add(
$raw['time'],
$raw['size'],
$block,
$namespace,
$raw['txid'],
$asm[0],
$key,
$value
);
}
}
// Update current block indexed
// Update current block state
file_put_contents(
__DIR__ . '/../.state',
$block

Loading…
Cancel
Save