Module solana_runtime::cost_tracker
source · Expand description
cost_tracker
keeps tracking transaction cost per chained accounts as well as for entire block
The main functions are:
- would_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.