mirror of
https://github.com/kvazar-network/crawler.git
synced 2025-01-08 22:27:56 +00:00
fix txid records
This commit is contained in:
parent
0e2a088b20
commit
bfa53960ad
@ -321,7 +321,7 @@ for ($block = $state + 1; $block <= $blocks; $block++)
|
|||||||
$record['height'] === $block
|
$record['height'] === $block
|
||||||
&&
|
&&
|
||||||
// Skip processed transactions for this namespace
|
// Skip processed transactions for this namespace
|
||||||
!in_array($raw['txid'], $transactions)
|
!in_array($record['txid'], $transactions)
|
||||||
) {
|
) {
|
||||||
// Register new transaction
|
// Register new transaction
|
||||||
$index->add(
|
$index->add(
|
||||||
@ -329,14 +329,14 @@ for ($block = $state + 1; $block <= $blocks; $block++)
|
|||||||
$raw['size'],
|
$raw['size'],
|
||||||
$block,
|
$block,
|
||||||
$namespace,
|
$namespace,
|
||||||
$raw['txid'],
|
$record['txid'],
|
||||||
$asm[0],
|
$asm[0],
|
||||||
$record['key'],
|
$record['key'],
|
||||||
$record['value']
|
$record['value']
|
||||||
);
|
);
|
||||||
|
|
||||||
// Register processed transaction
|
// Register processed transaction
|
||||||
$transactions[] = $raw['txid'];
|
$transactions[] = $record['txid'];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user