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

Default consensus parameters with settings suggested in fuel-specs

Transaction memory offset in VM runtime

Replace the max contract size with the given argument

Replace the max inputs with the given argument

Replace the max outputs with the given argument

Replace the max witnesses with the given argument

Replace the max gas per transaction with the given argument

Replace the max script length with the given argument

Replace the max script data length with the given argument

Replace the max storage slots with the given argument

Replace the max predicate length with the given argument

Replace the max predicate data length with the given argument

Replace the gas price factor with the given argument

Replace the max message data length with the given argument

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more
Feeds this value into the given Hasher. Read more
Feeds a slice of this type into the given Hasher. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.