From bfa53960adcdc86fc03a3bdbf7f0e24e0cae1df8 Mon Sep 17 00:00:00 2001 From: ghost Date: Mon, 26 Feb 2024 12:56:15 +0200 Subject: [PATCH] fix txid records --- src/index.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/index.php b/src/index.php index 99678f1..e5d85fc 100644 --- a/src/index.php +++ b/src/index.php @@ -321,7 +321,7 @@ for ($block = $state + 1; $block <= $blocks; $block++) $record['height'] === $block && // Skip processed transactions for this namespace - !in_array($raw['txid'], $transactions) + !in_array($record['txid'], $transactions) ) { // Register new transaction $index->add( @@ -329,14 +329,14 @@ for ($block = $state + 1; $block <= $blocks; $block++) $raw['size'], $block, $namespace, - $raw['txid'], + $record['txid'], $asm[0], $record['key'], $record['value'] ); // Register processed transaction - $transactions[] = $raw['txid']; + $transactions[] = $record['txid']; } }