pub struct TransactionProcessingEnvironment<'a> {
pub blockhash: Hash,
pub blockhash_lamports_per_signature: u64,
pub epoch_total_stake: u64,
pub feature_set: Arc<FeatureSet>,
pub fee_lamports_per_signature: u64,
pub rent_collector: Option<&'a dyn SVMRentCollector>,
}
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: Arc<FeatureSet>
Runtime feature set to use for the transaction batch.
fee_lamports_per_signature: u64
Transaction fee to charge per signature, in lamports.
rent_collector: Option<&'a dyn SVMRentCollector>
Rent collector to use for the transaction batch.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for TransactionProcessingEnvironment<'a>
impl<'a> !RefUnwindSafe for TransactionProcessingEnvironment<'a>
impl<'a> !Send for TransactionProcessingEnvironment<'a>
impl<'a> !Sync for TransactionProcessingEnvironment<'a>
impl<'a> Unpin for TransactionProcessingEnvironment<'a>
impl<'a> !UnwindSafe for TransactionProcessingEnvironment<'a>
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