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

Method disconnect_p2ps

test/functional/test_framework/test_node.py:342–346  ·  view source on GitHub ↗

Close all p2p connections to the node.

(self)

Source from the content-addressed store, hash-verified

340 return self.p2ps[0]
341
342 def disconnect_p2ps(self):
343 """Close all p2p connections to the node."""
344 for p in self.p2ps:
345 p.peer_disconnect()
346 del self.p2ps[:]
347
348class TestNodeCLIAttr:
349 def __init__(self, cli, command):

Callers 10

run_testMethod · 0.80
run_testMethod · 0.80
run_testMethod · 0.80
run_testMethod · 0.80
run_testMethod · 0.80
reconnect_p2pMethod · 0.80
run_testMethod · 0.80
run_testMethod · 0.80
run_testMethod · 0.80
reconnect_p2pMethod · 0.80

Calls 1

peer_disconnectMethod · 0.80

Tested by

no test coverage detected