solana_cost_model

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_REPLAY_TIME_US
Static configurations:
MAX_BLOCK_UNITS
Statically computed data:
MAX_BLOCK_UNITS_SIMD_0207
MAX_CONCURRENCY
number of concurrent processes,
MAX_VOTE_UNITS
Number of compute units that a block can have for vote transactions, sets at ~75% of 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.
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)