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: u64

Current block number (affects readiness of some transactions).

current_timestamp: u64

Current timestamp (affects readiness of some transactions).

nonce_cap: Option<U256>

Nonce cap (for dust protection; EIP-168)

max_len: usize

Maximal number of transactions in pending the set.

ordering: PendingOrdering

Ordering of transactions.

includable_boundary: U256

Value 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: bool

If true all non-local transactions in the pending set should have effective_priority_fee to be at least min_gas_price.

Implementations

Get all transactions (no cap or len limit) prioritized.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.