Constants§
- MAX_
CONSENSUS_ BLOCK_ SIZE - The maximum size of a consensus block in bytes.
- MAX_
INSTRUCTION_ DATA_ SIZE - The maximum size of a program instruction payload in bytes.
- MAX_
ORACLE_ OUTPUT_ SIZE - MAX_
RESPONSE_ SIZE - The maximum size for a payload received from a remote backend in bytes.
- MAX_
STATIC_ ACCOUNTS_ PER_ PACKET - MAX_
TRANSACTION_ SIZE - The maximum size of a single transaction in bytes.
- MIN_
VIABLE_ LIMIT_ OF_ ORACLE_ OUTPUT_ SIZE - The minimum viable size for the oracle output buffer, ensuring the oracle can serialize and
distinguish success or error responses from the
OracleOutputenum without truncation. Chosen empirically to support a variety of error/success reporting formats. - ORACLE_
OUTPUT_ RAW_ BASE_ OVERHEAD - ORACLE_
REPORT_ BASE_ OVERHEAD - ORACLE_
UPDATE_ BASE_ OVERHEAD - PACKET_
DATA_ SIZE - Maximum over-the-wire size of a Transaction 1280 is IPv6 minimum MTU 40 bytes is the size of the IPv6 header 8 bytes is the size of the fragment header
Functions§
- max_
oracle_ output_ serialized_ bytes - Calculates the maximum size of serialized OracleOutput.