From ffb068bf53839099e427c9dba4ea09f2eb64339e Mon Sep 17 00:00:00 2001 From: Akinwale Ariwodola Date: Thu, 15 Jun 2017 23:37:30 +0100 Subject: [PATCH] updated parsetxs cron to go back up to 10000 blocks --- src/Shell/BlockShell.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Shell/BlockShell.php b/src/Shell/BlockShell.php index f722be3..1495375 100644 --- a/src/Shell/BlockShell.php +++ b/src/Shell/BlockShell.php @@ -871,7 +871,7 @@ class BlockShell extends Shell { $idx_str = ($count > 10 && $idx < 10) ? '0' . $idx : $idx; echo "[$idx_str/$count] Processing tx hash: $tx_hash... "; - $stmt = $conn->execute("SELECT Hash, BlockTime FROM Blocks WHERE TransactionHashes LIKE CONCAT('%', ?, '%') AND Height > ((SELECT MAX(Height) FROM Blocks) - 2000) ORDER BY Height ASC LIMIT 1", [$tx_hash]); + $stmt = $conn->execute("SELECT Hash, BlockTime FROM Blocks WHERE TransactionHashes LIKE CONCAT('%', ?, '%') AND Height > ((SELECT MAX(Height) FROM Blocks) - 10000) ORDER BY Height ASC LIMIT 1", [$tx_hash]); $block = $stmt->fetch(\PDO::FETCH_OBJ); if ($block) { $upd_tx = ['Id' => $tx->Id, 'BlockHash' => $block->Hash, 'TransactionTime' => $block->BlockTime];