From 0bd5e8d01b60e496f1fa516610b2dc7d253a2f25 Mon Sep 17 00:00:00 2001 From: UdjinM6 Date: Fri, 3 Apr 2026 23:58:12 +0300 Subject: [PATCH 1/2] fix: sync txindex in FuncVerifyDB before querying non-coinbase tx FuncVerifyDB mines tx_collateral in a block via ProcessNewBlock, then later CreateProUpRevTx looks it up via GetTransaction/g_txindex. Unlike coinbase txns (indexed during initial chain setup), tx_collateral is only indexed asynchronously by the txindex background thread. Without an explicit IndexWaitSynced, the lookup can race and intermittently fail with "critical check txFrom has failed". Co-Authored-By: Claude Opus 4.6 --- src/test/evo_deterministicmns_tests.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/test/evo_deterministicmns_tests.cpp b/src/test/evo_deterministicmns_tests.cpp index af286a51f148..5e29f7466332 100644 --- a/src/test/evo_deterministicmns_tests.cpp +++ b/src/test/evo_deterministicmns_tests.cpp @@ -6,6 +6,7 @@ #include #include +#include #include #include #include @@ -20,6 +21,7 @@ #include