Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ElementsProject/elements
/ on_ping
Method
on_ping
test/functional/p2p_ping.py:24–25 ·
view source on GitHub ↗
(self, message)
Source
from the content-addressed store, hash-verified
22
23
class
NodePongAdd1(P2PInterface):
24
def
on_ping(self, message):
25
self.send_message(msg_pong(message.nonce + 1))
26
27
28
class
NodeNoPong(P2PInterface):
Callers
nothing calls this directly
Calls
2
msg_pong
Class · 0.90
send_message
Method · 0.45
Tested by
no test coverage detected