Type Alias MockOrdering

Source
pub type MockOrdering = CoinbaseTipOrdering<MockTransaction>;
Available on crate feature test-utils only.
Expand description

MockOrdering is just a CoinbaseTipOrdering with MockTransaction

Aliased Type§

struct MockOrdering(/* private fields */);

Layout§

Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.

Size: 0 bytes

Trait Implementations

Source§

impl<T> Clone for CoinbaseTipOrdering<T>

Source§

fn clone(&self) -> Self

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<T: Debug> Debug for CoinbaseTipOrdering<T>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<T> Default for CoinbaseTipOrdering<T>

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl<T> TransactionOrdering for CoinbaseTipOrdering<T>
where T: PoolTransaction + 'static,

Source§

fn priority( &self, transaction: &Self::Transaction, base_fee: u64, ) -> Priority<Self::PriorityValue>

Source§

type PriorityValue = Uint<256, 4>

Priority of a transaction. Read more
Source§

type Transaction = T

The transaction type to determine the priority of.