MCPcopy
hub / github.com/jimmysong/programmingbitcoin / PongMessage

Class PongMessage

code-ch13/network.py:218–229  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

216
217
218class PongMessage:
219 command = b'pong'
220
221 def __init__(self, nonce):
222 self.nonce = nonce
223
224 def parse(cls, s):
225 nonce = s.read(8)
226 return cls(nonce)
227
228 def serialize(self):
229 return self.nonce
230
231
232class GetHeadersMessage:

Callers 1

wait_forMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected