Expand description
Types and serialization for the Bitcoin CompactSize format.
Zebra decodes CompactSize fields into two different types,
depending on the consensus rules that apply to that type:
CompactSizeMessagefor sizes that must be less than the network message limit, andCompactSize64for flags, arbitrary counts, and sizes that span multiple blocks.
Structsยง
- Compact
Size64 - An arbitrary CompactSize-encoded field. Used for flags, arbitrary counts, and sizes that span multiple blocks.
- Compact
Size Message - A CompactSize-encoded field that is limited to
MAX_PROTOCOL_MESSAGE_LEN. Used for sizes or counts of objects that are sent in network messages.