MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / msg_cmpctblock

Class msg_cmpctblock

test/functional/test_framework/messages.py:1693–1710  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1691
1692
1693class msg_cmpctblock:
1694 __slots__ = ("header_and_shortids",)
1695 msgtype = b"cmpctblock"
1696
1697 def __init__(self, header_and_shortids = None):
1698 self.header_and_shortids = header_and_shortids
1699
1700 def deserialize(self, f):
1701 self.header_and_shortids = P2PHeaderAndShortIDs()
1702 self.header_and_shortids.deserialize(f)
1703
1704 def serialize(self):
1705 r = b""
1706 r += self.header_and_shortids.serialize()
1707 return r
1708
1709 def __repr__(self):
1710 return "msg_cmpctblock(HeaderAndShortIDs=%s)" % repr(self.header_and_shortids)
1711
1712
1713class msg_getblocktxn:

Calls

no outgoing calls