MCPcopy Create free account
hub / github.com/ElementsProject/elements / on_ping

Method on_ping

test/functional/p2p_eviction.py:34–36  ·  view source on GitHub ↗
(self, message)

Source from the content-addressed store, hash-verified

32
33class SlowP2PDataStore(P2PDataStore):
34 def on_ping(self, message):
35 time.sleep(0.1)
36 self.send_message(msg_pong(message.nonce))
37
38class SlowP2PInterface(P2PInterface):
39 def on_ping(self, message):

Callers

nothing calls this directly

Calls 2

msg_pongClass · 0.90
send_messageMethod · 0.45

Tested by

no test coverage detected