| 1719 | |
| 1720 | |
| 1721 | class msg_tx: |
| 1722 | __slots__ = ("tx",) |
| 1723 | msgtype = b"tx" |
| 1724 | |
| 1725 | def __init__(self, tx=CTransaction()): |
| 1726 | self.tx = tx |
| 1727 | |
| 1728 | def deserialize(self, f): |
| 1729 | self.tx.deserialize(f) |
| 1730 | |
| 1731 | def serialize(self): |
| 1732 | return self.tx.serialize_with_witness() |
| 1733 | |
| 1734 | def __repr__(self): |
| 1735 | return "msg_tx(tx=%s)" % (repr(self.tx)) |
| 1736 | |
| 1737 | class msg_wtxidrelay: |
| 1738 | __slots__ = () |
no outgoing calls