mirror of
https://github.com/kvazar-network/crawler.git
synced 2025-01-08 22:27:56 +00:00
add index recorder
This commit is contained in:
parent
ea5c775df3
commit
94c8aaa23c
@ -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(
|
file_put_contents(
|
||||||
__DIR__ . '/../.state',
|
__DIR__ . '/../.state',
|
||||||
$block
|
$block
|
||||||
|
Loading…
Reference in New Issue
Block a user