From 562664d26374331d291b97e2e2f7fca1f0fd467b Mon Sep 17 00:00:00 2001 From: ismaelsadeeq Date: Wed, 6 Dec 2023 13:55:38 +0100 Subject: [PATCH] test: wait for fee estimator to catch up before estimating fees --- src/test/policyestimator_tests.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/test/policyestimator_tests.cpp b/src/test/policyestimator_tests.cpp index 13ec89663ae..75cdfb90dc4 100644 --- a/src/test/policyestimator_tests.cpp +++ b/src/test/policyestimator_tests.cpp @@ -112,6 +112,9 @@ BOOST_AUTO_TEST_CASE(BlockPolicyEstimates) } } + // Wait for fee estimator to catch up + SyncWithValidationInterfaceQueue(); + std::vector origFeeEst; // Highest feerate is 10*baseRate and gets in all blocks, // second highest feerate is 9*baseRate and gets in 9/10 blocks = 90%,