From 3d7b3e44734ec859e37d1ac4005f25678f0cbc94 Mon Sep 17 00:00:00 2001 From: Antoine Poinsot Date: Wed, 11 Sep 2024 09:57:31 +0200 Subject: [PATCH] qa: correct reorg_shit function to use given `height` It was using the passed height for all other calculation, except for the invalidation itself where it was using the wider-scope-initial-tip! This is probably a mistake due to moving it to its own, inner, function. --- tests/test_chain.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_chain.py b/tests/test_chain.py index b4bf5960..30027bbb 100644 --- a/tests/test_chain.py +++ b/tests/test_chain.py @@ -208,7 +208,7 @@ def test_rescan_edge_cases(lianad, bitcoind): """Remine the chain from given height, shifting the txs by one block.""" delta = bitcoind.rpc.getblockcount() - height + 1 assert delta > 2 - h = bitcoind.rpc.getblockhash(initial_tip["height"]) + h = bitcoind.rpc.getblockhash(height) bitcoind.rpc.invalidateblock(h) bitcoind.generate_block(1) for tx in txs: