MCPcopy Create free account
hub / github.com/ElementsProject/lightning / check_disconnect

Function check_disconnect

tests/test_plugin.py:529–531  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

527 l3.daemon.wait_for_log(r"You are in reject list")
528
529 def check_disconnect():
530 peers = l1.rpc.listpeers(l3id)['peers']
531 return peers == [] or not peers[0]['connected']
532
533 wait_for(check_disconnect)
534 assert not l1.daemon.is_in_log(f"peer_connected_logger_b {l3id}")

Callers

nothing calls this directly

Calls 1

listpeersMethod · 0.45

Tested by

no test coverage detected