Trait gear_common::BlockLimiter
source · pub trait BlockLimiter {
type BlockGasLimit: Get<Self::Balance>;
type Balance;
type GasAllowance: Limiter<Value = Self::Balance>;
}
Expand description
Contains various limits for the block.
Required Associated Types§
sourcetype BlockGasLimit: Get<Self::Balance>
type BlockGasLimit: Get<Self::Balance>
The maximum amount of gas that can be used within a single block.
sourcetype GasAllowance: Limiter<Value = Self::Balance>
type GasAllowance: Limiter<Value = Self::Balance>
Type manages a gas that is available at the moment of call.