pub trait ScoredTransaction {
    fn priority(&self) -> Priority;
fn effective_gas_price(&self, block_base_fee: Option<U256>) -> U256;
fn effective_priority_fee(&self, block_base_fee: Option<U256>) -> U256;
fn nonce(&self) -> U256;
fn cost(&self) -> U256; }
Expand description

Scoring properties for verified transaction.

Required methods

Gets transaction priority.

Gets transaction gas price.

Gets the actual reward miner will get if the transaction is added into the current block.

Gets transaction nonce.

Calculates maximal transaction cost (gas_price * gas_limit + value).

Implementors