Type Alias MockOrdering

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

§

impl<T> Clone for CoinbaseTipOrdering<T>

§

fn clone(&self) -> CoinbaseTipOrdering<T>

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
§

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

§

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

Formats the value using the given formatter. Read more
§

impl<T> Default for CoinbaseTipOrdering<T>

§

fn default() -> CoinbaseTipOrdering<T>

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

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

§

fn priority( &self, transaction: &<CoinbaseTipOrdering<T> as TransactionOrdering>::Transaction, base_fee: u64, ) -> Priority<<CoinbaseTipOrdering<T> as TransactionOrdering>::PriorityValue>

§

type PriorityValue = Uint<256, 4>

Priority of a transaction. Read more
§

type Transaction = T

The transaction type to determine the priority of.