Skip to content

Commit fab83b9

Browse files
author
MarcoFalke
committed
test: pep-8 p2p_feefilter.py
1 parent 4b5c919 commit fab83b9

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

test/functional/p2p_feefilter.py

+6-2
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
def hashToHex(hash):
1616
return format(hash, '064x')
1717

18+
1819
# Wait up to 60 secs to see if the testnode has received all the expected invs
1920
def allInvsMatch(invsExpected, testnode):
2021
for x in range(60):
@@ -24,6 +25,7 @@ def allInvsMatch(invsExpected, testnode):
2425
time.sleep(1)
2526
return False
2627

28+
2729
class TestP2PConn(P2PInterface):
2830
def __init__(self):
2931
super().__init__()
@@ -38,6 +40,7 @@ def clear_invs(self):
3840
with mininode_lock:
3941
self.txinvs = []
4042

43+
4144
class FeeFilterTest(BitcoinTestFramework):
4245
def set_test_params(self):
4346
self.num_nodes = 2
@@ -46,7 +49,7 @@ def set_test_params(self):
4649
# mempool and wallet feerate calculation based on GetFee
4750
# rounding down 3 places, leading to stranded transactions.
4851
# See issue #16499
49-
self.extra_args = [["-minrelaytxfee=0.00000100", "-mintxfee=0.00000100"]]*self.num_nodes
52+
self.extra_args = [["-minrelaytxfee=0.00000100", "-mintxfee=0.00000100"]] * self.num_nodes
5053

5154
def skip_test_if_missing_module(self):
5255
self.skip_if_no_wallet()
@@ -80,7 +83,7 @@ def run_test(self):
8083
# by the test connection
8184
node1.settxfee(Decimal("0.00000100"))
8285
[node1.sendtoaddress(node1.getnewaddress(), 1) for x in range(3)]
83-
self.sync_mempools() # must be sure node 0 has received all txs
86+
self.sync_mempools() # must be sure node 0 has received all txs
8487

8588
# Send one transaction from node0 that should be received, so that we
8689
# we can sync the test on receipt (if node1's txs were relayed, they'd
@@ -100,5 +103,6 @@ def run_test(self):
100103
assert allInvsMatch(txids, self.nodes[0].p2p)
101104
self.nodes[0].p2p.clear_invs()
102105

106+
103107
if __name__ == '__main__':
104108
FeeFilterTest().main()

0 commit comments

Comments
 (0)