test: support v0.14.x in dumb_sync_blocks

The getblock RPC used a boolean verbose argument before v0.15. Use the
legacy named argument so the helper can synchronize blocks from v0.14.x
nodes while remaining compatible with current nodes.
This commit is contained in:
w0xlt
2025-08-12 15:34:25 -07:00
parent d3cfd02bd7
commit 18b8afd093

View File

@@ -704,7 +704,8 @@ def dumb_sync_blocks(*, src, dst, height=None):
height = height or src.getblockcount()
for i in range(dst.getblockcount() + 1, height + 1):
block_hash = src.getblockhash(i)
block = src.getblock(blockhash=block_hash, verbosity=0)
# Use boolean verbosity for v0.14.x compatibility.
block = src.getblock(blockhash=block_hash, verbose=False)
dst.submitblock(block)
assert_equal(dst.getblockcount(), height)