pub struct TransactionConfig {
pub max_ttl: TimeDiff,
pub block_max_approval_count: u32,
pub max_block_size: u32,
pub block_gas_limit: u64,
pub native_transfer_minimum_motes: u64,
pub max_timestamp_leeway: TimeDiff,
pub deploy_config: DeployConfig,
pub transaction_v1_config: TransactionV1Config,
pub runtime_config: RuntimeConfig,
}std only.Expand description
Configuration values associated with Transactions.
Fields§
§max_ttl: TimeDiffMaximum time to live any transaction can specify.
block_max_approval_count: u32Maximum number of approvals (signatures) allowed in a block across all transactions.
max_block_size: u32Maximum possible size in bytes of a block.
block_gas_limit: u64Maximum sum of payment across all transactions included in a block.
native_transfer_minimum_motes: u64Minimum token amount for a native transfer deploy or transaction (a transfer deploy or transaction received with an transfer amount less than this will be rejected upon receipt).
max_timestamp_leeway: TimeDiffMaximum value to which transaction_acceptor.timestamp_leeway can be set in the
config.toml file.
deploy_config: DeployConfigConfiguration values specific to Deploy transactions.
transaction_v1_config: TransactionV1ConfigConfiguration of the transaction runtime. Configuration values specific to V1 transactions.
runtime_config: RuntimeConfigConfiguration values specific to the runtime.
This is where we specify which runtimes are available.
Implementations§
Trait Implementations§
Source§impl Clone for TransactionConfig
impl Clone for TransactionConfig
Source§fn clone(&self) -> TransactionConfig
fn clone(&self) -> TransactionConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl DataSize for TransactionConfig
impl DataSize for TransactionConfig
Source§const IS_DYNAMIC: bool = true
const IS_DYNAMIC: bool = true
true, the type has a heap size that can vary at runtime, depending on the actual value.Source§const STATIC_HEAP_SIZE: usize = 0usize
const STATIC_HEAP_SIZE: usize = 0usize
IS_DYNAMIC is false, this is
the total amount of heap memory occupied by the value. Otherwise this is a lower bound.Source§fn estimate_heap_size(&self) -> usize
fn estimate_heap_size(&self) -> usize
Source§impl Debug for TransactionConfig
impl Debug for TransactionConfig
Source§impl Default for TransactionConfig
impl Default for TransactionConfig
Source§impl<'de> Deserialize<'de> for TransactionConfig
impl<'de> Deserialize<'de> for TransactionConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl FromBytes for TransactionConfig
impl FromBytes for TransactionConfig
Source§impl PartialEq for TransactionConfig
impl PartialEq for TransactionConfig
Source§impl Serialize for TransactionConfig
impl Serialize for TransactionConfig
Source§impl ToBytes for TransactionConfig
impl ToBytes for TransactionConfig
Source§fn write_bytes(&self, writer: &mut Vec<u8>) -> Result<(), Error>
fn write_bytes(&self, writer: &mut Vec<u8>) -> Result<(), Error>
&self into a mutable writer.Source§fn serialized_length(&self) -> usize
fn serialized_length(&self) -> usize
Vec<u8> which would be returned from a successful call to
to_bytes() or into_bytes(). The data is not actually serialized, so this call is
relatively cheap.impl Eq for TransactionConfig
impl StructuralPartialEq for TransactionConfig
Auto Trait Implementations§
impl !Freeze for TransactionConfig
impl RefUnwindSafe for TransactionConfig
impl Send for TransactionConfig
impl Sync for TransactionConfig
impl Unpin for TransactionConfig
impl UnwindSafe for TransactionConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more