pub struct TransactionProcessingEnvironment {
pub blockhash: Hash,
pub blockhash_lamports_per_signature: u64,
pub epoch_total_stake: u64,
pub feature_set: SVMFeatureSet,
pub rent: Rent,
}
Expand description
Runtime environment for transaction batch processing.
Fields§
§blockhash: Hash
The blockhash to use for the transaction batch.
blockhash_lamports_per_signature: u64
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
The total stake for the current epoch.
feature_set: SVMFeatureSet
Runtime feature set to use for the transaction batch.
rent: Rent
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> 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>
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