aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorismaelsadeeq <ask4ismailsadiq@gmail.com>2023-12-06 13:55:38 +0100
committerismaelsadeeq <ask4ismailsadiq@gmail.com>2023-12-06 15:01:54 +0100
commit562664d26374331d291b97e2e2f7fca1f0fd467b (patch)
tree0dd8ee18ca7acb406ff1931432aa9e0f1b66f395
parent6d5790956f45e3de5c6c4ee6fda21878b0d1287b (diff)
downloadbitcoin-562664d26374331d291b97e2e2f7fca1f0fd467b.tar.xz
test: wait for fee estimator to catch up before estimating fees
-rw-r--r--src/test/policyestimator_tests.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/test/policyestimator_tests.cpp b/src/test/policyestimator_tests.cpp
index 13ec89663a..75cdfb90dc 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<CAmount> origFeeEst;
// Highest feerate is 10*baseRate and gets in all blocks,
// second highest feerate is 9*baseRate and gets in 9/10 blocks = 90%,