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

Method setup_network

test/functional/feature_minchainwork.py:37–45  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

35 self.skip_if_no_wallet()
36
37 def setup_network(self):
38 # This test relies on the chain setup being:
39 # node0 <- node1 <- node2
40 # Before leaving IBD, nodes prefer to download blocks from outbound
41 # peers, so ensure that we're mining on an outbound peer and testing
42 # block relay to inbound peers.
43 self.setup_nodes()
44 for i in range(self.num_nodes-1):
45 connect_nodes(self.nodes[i+1], i)
46
47 def run_test(self):
48 # Start building a chain on node0. node2 shouldn't be able to sync until node1's

Callers

nothing calls this directly

Calls 2

connect_nodesFunction · 0.90
setup_nodesMethod · 0.45

Tested by

no test coverage detected