pub struct TransactionProcessingEnvironment<'a> {
pub blockhash: Hash,
pub epoch_total_stake: Option<u64>,
pub epoch_vote_accounts: Option<&'a VoteAccountsHashMap>,
pub feature_set: Arc<FeatureSet>,
pub fee_structure: Option<&'a FeeStructure>,
pub 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.
epoch_total_stake: Option<u64>
The total stake for the current epoch.
epoch_vote_accounts: Option<&'a VoteAccountsHashMap>
The vote accounts for the current epoch.
feature_set: Arc<FeatureSet>
Runtime feature set to use for the transaction batch.
fee_structure: Option<&'a FeeStructure>
Fee structure to use for assessing transaction fees.
lamports_per_signature: u64
Lamports per signature to charge per transaction.
rent_collector: Option<&'a dyn SVMRentCollector>
Rent collector to use for the transaction batch.
Trait Implementations§
Source§impl<'a> Default for TransactionProcessingEnvironment<'a>
impl<'a> Default for TransactionProcessingEnvironment<'a>
Source§fn default() -> TransactionProcessingEnvironment<'a>
fn default() -> TransactionProcessingEnvironment<'a>
Returns the “default value” for a type. Read more
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