MCPcopy
hub / github.com/petertodd/python-bitcoinlib / msg_addr

Class msg_addr

bitcoin/messages.py:189–206  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

187
188
189class msg_addr(MsgSerializable):
190 command = b"addr"
191
192 def __init__(self, protover=PROTO_VERSION):
193 super(msg_addr, self).__init__(protover)
194 self.addrs = []
195
196 @classmethod
197 def msg_deser(cls, f, protover=PROTO_VERSION):
198 c = cls()
199 c.addrs = VectorSerializer.stream_deserialize(CAddress, f)
200 return c
201
202 def msg_ser(self, f):
203 VectorSerializer.stream_serialize(CAddress, self.addrs, f)
204
205 def __repr__(self):
206 return "msg_addr(addrs=%s)" % (repr(self.addrs))
207
208
209class msg_alert(MsgSerializable):

Callers 1

addr_pktFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected