mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-06-03 17:54:19 +02:00
script, test: fix python linter E275 errors with flake8 5.0.4
This commit is contained in:
@@ -57,7 +57,7 @@ class RejectLowDifficultyHeadersTest(BitcoinTestFramework):
|
||||
|
||||
def check_node3_chaintips(num_tips, tip_hash, height):
|
||||
node3_chaintips = self.nodes[3].getchaintips()
|
||||
assert(len(node3_chaintips) == num_tips)
|
||||
assert len(node3_chaintips) == num_tips
|
||||
assert {
|
||||
'height': height,
|
||||
'hash': tip_hash,
|
||||
@@ -69,7 +69,7 @@ class RejectLowDifficultyHeadersTest(BitcoinTestFramework):
|
||||
|
||||
for node in self.nodes[1:3]:
|
||||
chaintips = node.getchaintips()
|
||||
assert(len(chaintips) == 1)
|
||||
assert len(chaintips) == 1
|
||||
assert {
|
||||
'height': 0,
|
||||
'hash': '0f9188f13cb7b2c71f2a335e3a4fc328bf5beb436012afca590b1a11466e2206',
|
||||
@@ -89,7 +89,7 @@ class RejectLowDifficultyHeadersTest(BitcoinTestFramework):
|
||||
'status': 'active',
|
||||
} in self.nodes[2].getchaintips()
|
||||
|
||||
assert(len(self.nodes[2].getchaintips()) == 1)
|
||||
assert len(self.nodes[2].getchaintips()) == 1
|
||||
|
||||
self.log.info("Check that node3 accepted these headers as well")
|
||||
check_node3_chaintips(2, self.nodes[0].getbestblockhash(), NODE1_BLOCKS_REQUIRED)
|
||||
|
||||
Reference in New Issue
Block a user