|
|
|
@ -112,7 +112,7 @@ class NetTest(BitcoinTestFramework):
|
|
|
|
|
no_version_peer_conntime = int(time.time())
|
|
|
|
|
self.nodes[0].setmocktime(no_version_peer_conntime)
|
|
|
|
|
with self.nodes[0].assert_debug_log([f"Added connection peer={no_version_peer_id}"]):
|
|
|
|
|
self.nodes[0].add_p2p_connection(P2PInterface(), send_version=False, wait_for_verack=False)
|
|
|
|
|
no_version_peer = self.nodes[0].add_p2p_connection(P2PInterface(), send_version=False, wait_for_verack=False)
|
|
|
|
|
self.nodes[0].setmocktime(0)
|
|
|
|
|
peer_info = self.nodes[0].getpeerinfo()[no_version_peer_id]
|
|
|
|
|
peer_info.pop("addr")
|
|
|
|
@ -153,7 +153,8 @@ class NetTest(BitcoinTestFramework):
|
|
|
|
|
"version": 0,
|
|
|
|
|
},
|
|
|
|
|
)
|
|
|
|
|
self.nodes[0].disconnect_p2ps()
|
|
|
|
|
no_version_peer.peer_disconnect()
|
|
|
|
|
self.wait_until(lambda: len(self.nodes[0].getpeerinfo()) == 2)
|
|
|
|
|
|
|
|
|
|
def test_getnettotals(self):
|
|
|
|
|
self.log.info("Test getnettotals")
|
|
|
|
|