From 18b8afd09333d19ffa6c51a08edda6af09b812b7 Mon Sep 17 00:00:00 2001 From: w0xlt <94266259+w0xlt@users.noreply.github.com> Date: Tue, 12 Aug 2025 15:34:25 -0700 Subject: [PATCH] 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. --- test/functional/test_framework/util.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/functional/test_framework/util.py b/test/functional/test_framework/util.py index d3f09719eb6..1f9d5901127 100644 --- a/test/functional/test_framework/util.py +++ b/test/functional/test_framework/util.py @@ -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)