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

Class msg_ping

test/functional/test_framework/messages.py:1820–1836  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1818
1819
1820class msg_ping:
1821 __slots__ = ("nonce",)
1822 msgtype = b"ping"
1823
1824 def __init__(self, nonce=0):
1825 self.nonce = nonce
1826
1827 def deserialize(self, f):
1828 self.nonce = struct.unpack("<Q", f.read(8))[0]
1829
1830 def serialize(self):
1831 r = b""
1832 r += struct.pack("<Q", self.nonce)
1833 return r
1834
1835 def __repr__(self):
1836 return "msg_ping(nonce=%08x)" % self.nonce
1837
1838
1839class msg_pong:

Callers 4

run_testMethod · 0.90
test_bufferMethod · 0.90
on_versionMethod · 0.90
sync_with_pingMethod · 0.90

Calls

no outgoing calls

Tested by 1

test_bufferMethod · 0.72