mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-06-03 17:54:19 +02:00
test: [refactor] Use verbosity=0 named arg
This is less confusing than the verbose=0 alias.
This commit is contained in:
@@ -729,7 +729,7 @@ def dumb_sync_blocks(*, src, dst, height=None):
|
|||||||
height = height or src.getblockcount()
|
height = height or src.getblockcount()
|
||||||
for i in range(dst.getblockcount() + 1, height + 1):
|
for i in range(dst.getblockcount() + 1, height + 1):
|
||||||
block_hash = src.getblockhash(i)
|
block_hash = src.getblockhash(i)
|
||||||
block = src.getblock(blockhash=block_hash, verbose=0)
|
block = src.getblock(blockhash=block_hash, verbosity=0)
|
||||||
dst.submitblock(block)
|
dst.submitblock(block)
|
||||||
assert_equal(dst.getblockcount(), height)
|
assert_equal(dst.getblockcount(), height)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user