From d681689aacb31700fd2d6556342a9d605c37fed5 Mon Sep 17 00:00:00 2001 From: ghost Date: Mon, 26 Feb 2024 11:50:44 +0200 Subject: [PATCH] collect namespace index --- src/index.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.php b/src/index.php index eaff488..cb68069 100644 --- a/src/index.php +++ b/src/index.php @@ -309,12 +309,12 @@ for ($block = $state + 1; $block <= $blocks; $block++) ); // Find all data by namespace - foreach ((array) $kevacoin->kevaGroupFilter( // @TODO complete \Kvazar\Crypto\Kevacoin to decode tx faster + foreach ((array) $kevacoin->kevaFilter( // @TODO complete \Kvazar\Crypto\Kevacoin to decode tx faster $namespace ) as $record) { // Get current block transactions only - if ($record['height'] == $block) + if ($record['height'] === $block) { // Register new transaction $index->add(