mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-07-09 18:00:13 +02:00
script, test: fix python linter E275 errors with flake8 5.0.4
This commit is contained in:
@ -78,7 +78,7 @@ def get_block_hashes(settings, max_blocks_per_call=10000):
|
||||
if rpc.response_is_error(resp_obj):
|
||||
print('JSON-RPC: error at height', height+x, ': ', resp_obj['error'], file=sys.stderr)
|
||||
sys.exit(1)
|
||||
assert(resp_obj['id'] == x) # assume replies are in-sequence
|
||||
assert resp_obj['id'] == x # assume replies are in-sequence
|
||||
if settings['rev_hash_bytes'] == 'true':
|
||||
resp_obj['result'] = bytes.fromhex(resp_obj['result'])[::-1].hex()
|
||||
print(resp_obj['result'])
|
||||
|
Reference in New Issue
Block a user