Trait ethcore_miner::pool::ScoredTransaction
source · [−]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
fn effective_gas_price(&self, block_base_fee: Option<U256>) -> U256
fn effective_gas_price(&self, block_base_fee: Option<U256>) -> U256
Gets transaction gas price.
fn effective_priority_fee(&self, block_base_fee: Option<U256>) -> U256
fn effective_priority_fee(&self, block_base_fee: Option<U256>) -> U256
Gets the actual reward miner will get if the transaction is added into the current block.