pub struct TransactionProcessingEnvironment {
pub blockhash: Hash,
pub blockhash_lamports_per_signature: u64,
pub epoch_total_stake: u64,
pub feature_set: SVMFeatureSet,
pub program_runtime_environments_for_execution: ProgramRuntimeEnvironments,
pub program_runtime_environments_for_deployment: ProgramRuntimeEnvironments,
pub rent: Rent,
}๐Deprecated since 3.1.0: This crate has been marked for formal inclusion in the Agave Unstable API. From v4.0.0 onward, the
agave-unstable-api crate feature must be specified to acknowledge use of an interface that may break without warning.Expand description
Runtime environment for transaction batch processing.
Fieldsยง
ยงblockhash: Hash๐Deprecated since 3.1.0: This crate has been marked for formal inclusion in the Agave Unstable API. From v4.0.0 onward, the
agave-unstable-api crate feature must be specified to acknowledge use of an interface that may break without warning.The blockhash to use for the transaction batch.
blockhash_lamports_per_signature: u64๐Deprecated since 3.1.0: This crate has been marked for formal inclusion in the Agave Unstable API. From v4.0.0 onward, the
agave-unstable-api crate feature must be specified to acknowledge use of an interface that may break without warning.Lamports per signature that corresponds to this blockhash.
Note: This value is primarily used for nonce accounts. If set to zero,
it will disable transaction fees. However, any non-zero value will not
change transaction fees. For this reason, it is recommended to use the
fee_per_signature field to adjust transaction fees.
epoch_total_stake: u64๐Deprecated since 3.1.0: This crate has been marked for formal inclusion in the Agave Unstable API. From v4.0.0 onward, the
agave-unstable-api crate feature must be specified to acknowledge use of an interface that may break without warning.The total stake for the current epoch.
feature_set: SVMFeatureSet๐Deprecated since 3.1.0: This crate has been marked for formal inclusion in the Agave Unstable API. From v4.0.0 onward, the
agave-unstable-api crate feature must be specified to acknowledge use of an interface that may break without warning.Runtime feature set to use for the transaction batch.
program_runtime_environments_for_execution: ProgramRuntimeEnvironments๐Deprecated since 3.1.0: This crate has been marked for formal inclusion in the Agave Unstable API. From v4.0.0 onward, the
agave-unstable-api crate feature must be specified to acknowledge use of an interface that may break without warning.The current ProgramRuntimeEnvironments derived from the SVMFeatureSet.
program_runtime_environments_for_deployment: ProgramRuntimeEnvironments๐Deprecated since 3.1.0: This crate has been marked for formal inclusion in the Agave Unstable API. From v4.0.0 onward, the
agave-unstable-api crate feature must be specified to acknowledge use of an interface that may break without warning.Depending on the next slot this is either the current or the upcoming ProgramRuntimeEnvironments.
rent: Rent๐Deprecated since 3.1.0: This crate has been marked for formal inclusion in the Agave Unstable API. From v4.0.0 onward, the
agave-unstable-api crate feature must be specified to acknowledge use of an interface that may break without warning.Rent calculator to use for the transaction batch.
Trait Implementationsยง
Sourceยงimpl Default for TransactionProcessingEnvironment
impl Default for TransactionProcessingEnvironment
Sourceยงfn default() -> TransactionProcessingEnvironment
fn default() -> TransactionProcessingEnvironment
Returns the โdefault valueโ for a type. Read more
Auto Trait Implementationsยง
impl Freeze for TransactionProcessingEnvironment
impl RefUnwindSafe for TransactionProcessingEnvironment
impl Send for TransactionProcessingEnvironment
impl Sync for TransactionProcessingEnvironment
impl Unpin for TransactionProcessingEnvironment
impl UnwindSafe for TransactionProcessingEnvironment
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
Mutably borrows from an owned value. Read more
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>
Converts
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>
Converts
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