Module block_cost_limits

Source
Expand description

defines block cost related limits

Constants§

COMPUTE_UNIT_TO_US_RATIO
Cluster averaged compute unit to micro-sec conversion rate
ED25519_VERIFY_COST
Number of compute units for one ed25519 signature verification.
ED25519_VERIFY_STRICT_COST
Number of compute units for one ed25519 strict signature verification.
INSTRUCTION_DATA_BYTES_COST
Number of data bytes per compute units
MAX_BLOCK_ACCOUNTS_DATA_SIZE_DELTA
The maximum allowed size, in bytes, that accounts data can grow, per block. This can also be thought of as the maximum size of new allocations per block.
MAX_BLOCK_UNITS
Number of compute units that a block is allowed. A block’s compute units are accumulated by Transactions added to it; A transaction’s compute units are calculated by cost_model, based on transaction’s signatures, write locks, data size and built-in and SBF instructions.
MAX_BLOCK_UNITS_SIMD_0207
MAX_VOTE_UNITS
Number of compute units that a block can have for vote transactions, set to less than MAX_BLOCK_UNITS to leave room for non-vote transactions
MAX_WRITABLE_ACCOUNT_UNITS
Number of compute units that a writable account in a block is allowed. The limit is to prevent too many transactions write to same account, therefore reduce block’s parallelism.
SECP256K1_VERIFY_COST
Number of compute units for one secp256k1 signature verification.
SECP256R1_VERIFY_COST
Number of compute units for one secp256r1 signature verification.
SIGNATURE_COST
Number of compute units for one signature verification.
WRITE_LOCK_UNITS
Number of compute units for one write lock

Functions§

simd_0207_block_limits
Return the block limits that will be used upon activation of SIMD-0207. Returns as (account_limit, block_limit, vote_limit)