pub struct PrioritizationFee { /* private fields */ }
Expand description
Block minimum prioritization fee stats, includes the minimum prioritization fee for a transaction in this block; and the minimum fee for each writable account in all transactions in this block. The only relevant write account minimum fees are those greater than the block minimum transaction fee, because the minimum fee needed to land a transaction is determined by Max( min_transaction_fee, min_writable_account_fees(key), …)
Implementations§
source§impl PrioritizationFee
impl PrioritizationFee
sourcepub fn update(
&mut self,
transaction_fee: u64,
writable_accounts: &[Pubkey],
) -> Result<(), PrioritizationFeeError>
pub fn update( &mut self, transaction_fee: u64, writable_accounts: &[Pubkey], ) -> Result<(), PrioritizationFeeError>
Update self for minimum transaction fee in the block and minimum fee for each writable account.
pub fn mark_block_completed(&mut self) -> Result<(), PrioritizationFeeError>
pub fn get_min_transaction_fee(&self) -> Option<u64>
pub fn get_writable_account_fee(&self, key: &Pubkey) -> Option<u64>
pub fn get_writable_account_fees(&self) -> impl Iterator<Item = (&Pubkey, &u64)>
pub fn get_writable_accounts_count(&self) -> usize
pub fn is_finalized(&self) -> bool
pub fn report_metrics(&self, slot: Slot)
Trait Implementations§
source§impl Debug for PrioritizationFee
impl Debug for PrioritizationFee
Auto Trait Implementations§
impl Freeze for PrioritizationFee
impl RefUnwindSafe for PrioritizationFee
impl Send for PrioritizationFee
impl Sync for PrioritizationFee
impl Unpin for PrioritizationFee
impl UnwindSafe for PrioritizationFee
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