flake8 cleanup
This commit is contained in:
parent
8df7a073ce
commit
23b329d912
|
@ -16,6 +16,7 @@ from test_framework.util import initialize_chain_clean, start_nodes, \
|
|||
import time, cStringIO
|
||||
from binascii import hexlify, unhexlify
|
||||
|
||||
|
||||
class TestNode(NodeConnCB):
|
||||
def __init__(self):
|
||||
NodeConnCB.__init__(self)
|
||||
|
@ -78,6 +79,7 @@ class TestNode(NodeConnCB):
|
|||
self.ping_counter += 1
|
||||
return received_pong
|
||||
|
||||
|
||||
class TxExpiringSoonTest(BitcoinTestFramework):
|
||||
|
||||
def setup_chain(self):
|
||||
|
@ -86,9 +88,7 @@ class TxExpiringSoonTest(BitcoinTestFramework):
|
|||
|
||||
def setup_network(self):
|
||||
self.nodes = start_nodes(3, self.options.tmpdir,
|
||||
extra_args=[[
|
||||
'-nuparams=5ba81b19:10',
|
||||
]] * 3)
|
||||
extra_args=[['-nuparams=5ba81b19:10']] * 3)
|
||||
connect_nodes_bi(self.nodes, 0, 1)
|
||||
# We don't connect node 2
|
||||
|
||||
|
@ -306,5 +306,6 @@ class TxExpiringSoonTest(BitcoinTestFramework):
|
|||
|
||||
[c.disconnect_node() for c in connections]
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
TxExpiringSoonTest().main()
|
||||
|
|
|
@ -131,5 +131,6 @@ class TxExpiryDoSTest(BitcoinTestFramework):
|
|||
|
||||
[c.disconnect_node() for c in connections]
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
TxExpiryDoSTest().main()
|
||||
|
|
Loading…
Reference in New Issue