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

Class msg_block

test/functional/test_framework/messages.py:1761–1778  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1759
1760
1761class 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

Callers 15

run_testMethod · 0.90
run_testMethod · 0.90
run_testMethod · 0.90
run_testMethod · 0.90
test_witness_blockFunction · 0.90
run_testMethod · 0.90
solve_and_send_blockMethod · 0.90

Calls

no outgoing calls