| 1695 | |
| 1696 | |
| 1697 | class msg_getblocks: |
| 1698 | __slots__ = ("locator", "hashstop") |
| 1699 | msgtype = b"getblocks" |
| 1700 | |
| 1701 | def __init__(self): |
| 1702 | self.locator = CBlockLocator() |
| 1703 | self.hashstop = 0 |
| 1704 | |
| 1705 | def deserialize(self, f): |
| 1706 | self.locator = CBlockLocator() |
| 1707 | self.locator.deserialize(f) |
| 1708 | self.hashstop = deser_uint256(f) |
| 1709 | |
| 1710 | def serialize(self): |
| 1711 | r = b"" |
| 1712 | r += self.locator.serialize() |
| 1713 | r += ser_uint256(self.hashstop) |
| 1714 | return r |
| 1715 | |
| 1716 | def __repr__(self): |
| 1717 | return "msg_getblocks(locator=%s hashstop=%064x)" \ |
| 1718 | % (repr(self.locator), self.hashstop) |
| 1719 | |
| 1720 | |
| 1721 | class msg_tx: |
no outgoing calls
no test coverage detected