From 206bc05e62c6a71c328eaab90fd865f46328642f Mon Sep 17 00:00:00 2001 From: Sebastian Falbesoner Date: Fri, 13 Jun 2025 14:39:23 +0200 Subject: [PATCH] test: remove unnecessary m_best_header setting hack in feature_assumeutxo.py The mentioned bug has been fixed in PR #30666, so the workaround is not needed anymore. --- test/functional/feature_assumeutxo.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/test/functional/feature_assumeutxo.py b/test/functional/feature_assumeutxo.py index 3309a6d21ed..a1213cbb1c9 100755 --- a/test/functional/feature_assumeutxo.py +++ b/test/functional/feature_assumeutxo.py @@ -484,12 +484,6 @@ class AssumeutxoTest(BitcoinTestFramework): dump_output5 = n0.dumptxoutset('utxos5.dat', rollback=prev_snap_hash) assert_equal(sha256sum_file(dump_output4['path']), sha256sum_file(dump_output5['path'])) - # TODO: This is a hack to set m_best_header to the correct value after - # dumptxoutset/reconsiderblock. Otherwise the wrong error messages are - # returned in following tests. It can be removed once this bug is - # fixed. See also https://github.com/bitcoin/bitcoin/issues/26245 - self.restart_node(0, ["-reindex"]) - # Ensure n0 is back at the tip assert_equal(n0.getblockchaininfo()["blocks"], FINAL_HEIGHT)