MCPcopy Create free account
hub / github.com/BTCGPU/BTCGPU / bootstrap_p2p

Method bootstrap_p2p

test/functional/p2p_invalid_tx.py:32–37  ·  view source on GitHub ↗

Add a P2P connection to the node. Helper to connect and wait for version handshake.

(self, *, num_connections=1)

Source from the content-addressed store, hash-verified

30 self.skip_if_no_wallet()
31
32 def bootstrap_p2p(self, *, num_connections=1):
33 """Add a P2P connection to the node.
34
35 Helper to connect and wait for version handshake."""
36 for _ in range(num_connections):
37 self.nodes[0].add_p2p_connection(P2PDataStore())
38
39 def reconnect_p2p(self, **kwargs):
40 """Tear down and bootstrap the P2P connection to the node.

Callers 2

reconnect_p2pMethod · 0.95
run_testMethod · 0.95

Calls 2

P2PDataStoreClass · 0.90
add_p2p_connectionMethod · 0.80

Tested by

no test coverage detected