MCPcopy Create free account
hub / github.com/ElementsProject/elements / msg_getblocks

Class msg_getblocks

test/functional/test_framework/messages.py:1697–1718  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1695
1696
1697class 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
1721class msg_tx:

Callers 2

run_testMethod · 0.90
send_getblocksMethod · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected