| 1759 | |
| 1760 | |
| 1761 | class msg_block: |
| 1762 | __slots__ = ("block",) |
| 1763 | msgtype = b"block" |
| 1764 | |
| 1765 | def __init__(self, block=None): |
| 1766 | if block is None: |
| 1767 | self.block = CBlock() |
| 1768 | else: |
| 1769 | self.block = block |
| 1770 | |
| 1771 | def deserialize(self, f): |
| 1772 | self.block.deserialize(f) |
| 1773 | |
| 1774 | def serialize(self): |
| 1775 | return self.block.serialize() |
| 1776 | |
| 1777 | def __repr__(self): |
| 1778 | return "msg_block(block=%s)" % (repr(self.block)) |
| 1779 | |
| 1780 | |
| 1781 | # for cases where a user needs tighter control over what is sent over the wire |
no outgoing calls