Module solana_runtime::cost_tracker[][src]

Expand description

cost_tracker keeps tracking transaction cost per chained accounts as well as for entire block The main functions are:

  • would_transaction_fit(&tx_cost), immutable function to test if tx with tx_cost would fit into current block
  • add_transaction_cost(&tx_cost), mutable function to accumulate tx_cost to tracker.

Structs

Enums