mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-09-12 05:32:22 +02:00
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:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user