Struct ethcore_miner::pool::PendingSettings
source · [−]pub struct PendingSettings {
pub block_number: u64,
pub current_timestamp: u64,
pub nonce_cap: Option<U256>,
pub max_len: usize,
pub ordering: PendingOrdering,
pub includable_boundary: U256,
pub enforce_priority_fees: bool,
}Expand description
Pending set query settings
Fields
block_number: u64Current block number (affects readiness of some transactions).
current_timestamp: u64Current timestamp (affects readiness of some transactions).
nonce_cap: Option<U256>Nonce cap (for dust protection; EIP-168)
max_len: usizeMaximal number of transactions in pending the set.
ordering: PendingOrderingOrdering of transactions.
includable_boundary: U256Value of score that is a boundary between includable and non-includable transactions Before EIP1559 it should be equal to zero, after EIP1559 it should be equal to block_base_fee
enforce_priority_fees: boolIf true all non-local transactions in the pending set should have
effective_priority_fee to be at least min_gas_price.
Implementations
sourceimpl PendingSettings
impl PendingSettings
sourcepub fn all_prioritized(block_number: u64, current_timestamp: u64) -> Self
pub fn all_prioritized(block_number: u64, current_timestamp: u64) -> Self
Get all transactions (no cap or len limit) prioritized.
Trait Implementations
sourceimpl Clone for PendingSettings
impl Clone for PendingSettings
sourcefn clone(&self) -> PendingSettings
fn clone(&self) -> PendingSettings
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
Auto Trait Implementations
impl RefUnwindSafe for PendingSettings
impl Send for PendingSettings
impl Sync for PendingSettings
impl Unpin for PendingSettings
impl UnwindSafe for PendingSettings
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more