mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-06-29 18:20:58 +02:00
script, test: fix python linter E275 errors with flake8 5.0.4
This commit is contained in:
@ -221,7 +221,7 @@ class CoinStatsIndexTest(BitcoinTestFramework):
|
||||
|
||||
self.generate(index_node, 1, sync_fun=self.no_op)
|
||||
res10 = index_node.gettxoutsetinfo('muhash')
|
||||
assert(res8['txouts'] < res10['txouts'])
|
||||
assert res8['txouts'] < res10['txouts']
|
||||
|
||||
self.log.info("Test that the index works with -reindex")
|
||||
|
||||
@ -268,12 +268,12 @@ class CoinStatsIndexTest(BitcoinTestFramework):
|
||||
res2 = index_node.gettxoutsetinfo(hash_type='muhash', hash_or_height=112)
|
||||
assert_equal(res["bestblock"], block)
|
||||
assert_equal(res["muhash"], res2["muhash"])
|
||||
assert(res["muhash"] != res_invalid["muhash"])
|
||||
assert res["muhash"] != res_invalid["muhash"]
|
||||
|
||||
# Test that requesting reorged out block by hash is still returning correct results
|
||||
res_invalid2 = index_node.gettxoutsetinfo(hash_type='muhash', hash_or_height=reorg_block)
|
||||
assert_equal(res_invalid2["muhash"], res_invalid["muhash"])
|
||||
assert(res["muhash"] != res_invalid2["muhash"])
|
||||
assert res["muhash"] != res_invalid2["muhash"]
|
||||
|
||||
# Add another block, so we don't depend on reconsiderblock remembering which
|
||||
# blocks were touched by invalidateblock
|
||||
|
Reference in New Issue
Block a user