Constant massa_models::config::constants::MAX_ASYNC_GAS
source ยท pub const MAX_ASYNC_GAS: u64 = 1_000_000_000;Expand description
Base GAS budget for asynchronous messages execution on one slot.
This is not a strict per-slot cap: since MIP-0001, execute_slot tops this budget
up with the gas left unused by the block at that slot (and subtracts the gas booked
by deferred calls), so async execution can exceed this value on underfilled slots.
The bound that always holds is MAX_GAS_PER_BLOCK + MAX_ASYNC_GAS for the whole slot.
That same bound caps what an async message may ever request: the send_message ABI
enforces no upper bound on max_gas, so a message asking for more than
MAX_GAS_PER_BLOCK + MAX_ASYNC_GAS - ASYNC_MSG_CST_GAS_COST is accepted but can never
be scheduled, and forfeits its fee when it expires.