Struct ethcore::miner::TransactionQueue [] [src]

pub struct TransactionQueue { /* fields omitted */ }

TransactionQueue implementation

Methods

impl TransactionQueue
[src]

Creates new instance of this Queue

Create new instance of this Queue with specified limits

Set the new limit for current and future queue.

Returns current limit of transactions in the queue.

Get the minimal gas price.

Sets new gas price threshold for incoming transactions. Any transaction already imported to the queue is not affected.

Get one more than the lowest gas price in the queue iff the pool is full, otherwise 0.

Sets new gas limit. Transactions with gas slightly (GAS_LIMIT_HYSTERESIS) above the limit won't be imported. Any transaction already imported to the queue is not affected.

Sets new total gas limit.

Set the new limit for the amount of gas any individual transaction may have. Any transaction already imported to the queue is not affected.

Returns current status for this queue

Add signed transaction to queue to be verified and imported.

NOTE details_provider methods should be cheap to compute otherwise it might open up an attack vector.

Removes all transactions from particular sender up to (excluding) given client (state) nonce. Client (State) Nonce = next valid nonce for this sender.

Checks the current nonce for all transactions' senders in the queue and removes the old transactions.

Penalize transactions from sender of transaction with given hash. I.e. it should change the priority of the transaction in the queue.

NOTE: We need to penalize all transactions from particular sender to avoid breaking invariants in queue (ordered by nonces). Consecutive transactions from this sender would fail otherwise (because of invalid nonce).

Removes invalid transaction identified by hash from queue. Assumption is that this transaction nonce is not related to client nonce, so transactions left in queue are processed according to client nonce.

If gap is introduced marks subsequent transactions as future

Returns top transactions from the queue ordered by priority.

Returns top transactions from the queue ordered by priority.

Return all ready transactions.

Return all ready transactions.

Returns local transactions (some of them might not be part of the queue anymore).

Returns hashes of all transactions from current, ordered by priority.

Returns true if there is at least one local transaction pending

Finds transaction in the queue by hash (if any)

Removes all elements (in any state) from the queue

Returns highest transaction nonce for given address.

Trait Implementations

impl Default for TransactionQueue
[src]

Returns the "default value" for a type. Read more