Struct fuel_tx::ConsensusParameters
source · pub struct ConsensusParameters {Show 13 fields
pub contract_max_size: u64,
pub max_inputs: u64,
pub max_outputs: u64,
pub max_witnesses: u64,
pub max_gas_per_tx: u64,
pub max_script_length: u64,
pub max_script_data_length: u64,
pub max_storage_slots: u64,
pub max_predicate_length: u64,
pub max_predicate_data_length: u64,
pub gas_price_factor: u64,
pub gas_per_byte: u64,
pub max_message_data_length: u64,
}
Expand description
Consensus configurable parameters used for verifying transactions
Fields§
§contract_max_size: u64
Maximum contract size, in bytes.
max_inputs: u64
Maximum number of inputs.
max_outputs: u64
Maximum number of outputs.
max_witnesses: u64
Maximum number of witnesses.
max_gas_per_tx: u64
Maximum gas per transaction.
max_script_length: u64
Maximum length of script, in instructions.
max_script_data_length: u64
Maximum length of script data, in bytes.
max_storage_slots: u64
Maximum number of initial storage slots.
max_predicate_length: u64
Maximum length of predicate, in instructions.
max_predicate_data_length: u64
Maximum length of predicate data, in bytes.
gas_price_factor: u64
Factor to convert between gas and transaction assets value.
gas_per_byte: u64
A fixed ratio linking metered bytes to gas price
max_message_data_length: u64
Maximum length of message data, in bytes.
Implementations§
source§impl ConsensusParameters
impl ConsensusParameters
sourcepub const fn with_contract_max_size(self, contract_max_size: u64) -> Self
pub const fn with_contract_max_size(self, contract_max_size: u64) -> Self
Replace the max contract size with the given argument
sourcepub const fn with_max_inputs(self, max_inputs: u64) -> Self
pub const fn with_max_inputs(self, max_inputs: u64) -> Self
Replace the max inputs with the given argument
sourcepub const fn with_max_outputs(self, max_outputs: u64) -> Self
pub const fn with_max_outputs(self, max_outputs: u64) -> Self
Replace the max outputs with the given argument
sourcepub const fn with_max_witnesses(self, max_witnesses: u64) -> Self
pub const fn with_max_witnesses(self, max_witnesses: u64) -> Self
Replace the max witnesses with the given argument
sourcepub const fn with_max_gas_per_tx(self, max_gas_per_tx: u64) -> Self
pub const fn with_max_gas_per_tx(self, max_gas_per_tx: u64) -> Self
Replace the max gas per transaction with the given argument
sourcepub const fn with_max_script_length(self, max_script_length: u64) -> Self
pub const fn with_max_script_length(self, max_script_length: u64) -> Self
Replace the max script length with the given argument
sourcepub const fn with_max_script_data_length(
self,
max_script_data_length: u64
) -> Self
pub const fn with_max_script_data_length( self, max_script_data_length: u64 ) -> Self
Replace the max script data length with the given argument
sourcepub const fn with_max_storage_slots(self, max_storage_slots: u64) -> Self
pub const fn with_max_storage_slots(self, max_storage_slots: u64) -> Self
Replace the max storage slots with the given argument
sourcepub const fn with_max_predicate_length(self, max_predicate_length: u64) -> Self
pub const fn with_max_predicate_length(self, max_predicate_length: u64) -> Self
Replace the max predicate length with the given argument
sourcepub const fn with_max_predicate_data_length(
self,
max_predicate_data_length: u64
) -> Self
pub const fn with_max_predicate_data_length( self, max_predicate_data_length: u64 ) -> Self
Replace the max predicate data length with the given argument
sourcepub const fn with_gas_price_factor(self, gas_price_factor: u64) -> Self
pub const fn with_gas_price_factor(self, gas_price_factor: u64) -> Self
Replace the gas price factor with the given argument
pub const fn with_gas_per_byte(self, gas_per_byte: u64) -> Self
sourcepub const fn with_max_message_data_length(
self,
max_message_data_length: u64
) -> Self
pub const fn with_max_message_data_length( self, max_message_data_length: u64 ) -> Self
Replace the max message data length with the given argument
Trait Implementations§
source§impl Clone for ConsensusParameters
impl Clone for ConsensusParameters
source§fn clone(&self) -> ConsensusParameters
fn clone(&self) -> ConsensusParameters
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ConsensusParameters
impl Debug for ConsensusParameters
source§impl Default for ConsensusParameters
impl Default for ConsensusParameters
source§impl Hash for ConsensusParameters
impl Hash for ConsensusParameters
source§impl PartialEq<ConsensusParameters> for ConsensusParameters
impl PartialEq<ConsensusParameters> for ConsensusParameters
source§fn eq(&self, other: &ConsensusParameters) -> bool
fn eq(&self, other: &ConsensusParameters) -> bool
self
and other
values to be equal, and is used
by ==
.