diff options
author | John Newbery <john@johnnewbery.com> | 2017-08-24 15:36:02 -0400 |
---|---|---|
committer | John Newbery <john@johnnewbery.com> | 2017-11-08 09:32:04 -0500 |
commit | 32ae82f5c3d51a66ad4deb84819809b890664245 (patch) | |
tree | 23e83cfed1f974a3a21df022ec1f207eeb645dae /test/functional/p2p-fingerprint.py | |
parent | 5e5725cc2b56d66510fd85d7ee3822e6df43cd24 (diff) |
[tests] use TestNode p2p connection in tests
Diffstat (limited to 'test/functional/p2p-fingerprint.py')
-rwxr-xr-x | test/functional/p2p-fingerprint.py | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/test/functional/p2p-fingerprint.py b/test/functional/p2p-fingerprint.py index fe60c6cd46..4b6446fc5b 100755 --- a/test/functional/p2p-fingerprint.py +++ b/test/functional/p2p-fingerprint.py @@ -14,7 +14,6 @@ from test_framework.blocktools import (create_block, create_coinbase) from test_framework.mininode import ( CInv, NetworkThread, - NodeConn, NodeConnCB, msg_headers, msg_block, @@ -77,11 +76,7 @@ class P2PFingerprintTest(BitcoinTestFramework): # This does not currently test that stale blocks timestamped within the # last month but that have over a month's worth of work are also withheld. def run_test(self): - node0 = NodeConnCB() - - connections = [] - connections.append(NodeConn('127.0.0.1', p2p_port(0), self.nodes[0], node0)) - node0.add_connection(connections[0]) + node0 = self.nodes[0].add_p2p_connection(NodeConnCB()) NetworkThread().start() node0.wait_for_verack() |