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.
This commit is contained in:
Antoine Poinsot 2024-09-11 09:57:31 +02:00
parent 193f38a7c7
commit 3d7b3e4473
No known key found for this signature in database
GPG Key ID: E13FC145CD3F4304

View File

@ -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: