Struct ethcore_miner::pool::TransactionQueue[][src]

pub struct TransactionQueue { /* fields omitted */ }

Ethereum Transaction Queue

Responsible for:

Methods

impl TransactionQueue
[src]

Create new queue with given pool limits and initial verification options.

Update verification options

Some parameters of verification may vary in time (like block gas limit or minimal gas price).

Important traits for Vec<u8>

Import a set of transactions to the pool.

Given blockchain and state access (Client) verifies and imports transactions to the pool.

Important traits for Vec<u8>

Returns all transactions in the queue without explicit ordering.

Computes unordered set of pending hashes.

Since strict nonce-checking is not required, you may get some false positive future transactions as well.

Important traits for Vec<u8>

Returns current pending transactions ordered by priority.

NOTE: This may return a cached version of pending transaction set. Re-computing the pending set is possible with #collect_pending method, but be aware that it's a pretty expensive operation.

Collect pending transactions.

NOTE This is re-computing the pending set and it might be expensive to do so. Prefer using cached pending set using #pending method.

Culls all stalled transactions from the pool.

Returns next valid nonce for given sender or None if there are no pending transactions from that sender.

Retrieve a transaction from the pool.

Given transaction hash looks up that transaction in the pool and returns a shared pointer to it or None if it's not present.

Important traits for Vec<u8>

Remove a set of transactions from the pool.

Given an iterator of transaction hashes removes them from the pool. That method should be used if invalid transactions are detected or you want to cancel a transaction.

Clear the entire pool.

Penalize given senders.

Returns gas price of currently the worst transaction in the pool.

Returns a status of the queue.

Check if there are any local transactions in the pool.

Returns true if there are any transactions in the pool that has been marked as local.

Local transactions are the ones from accounts managed by this node and transactions submitted via local RPC (eth_sendRawTransaction)

Returns status of recently seen local transactions.

Add a callback to be notified about all transactions entering the pool.

Trait Implementations

impl Debug for TransactionQueue
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for TransactionQueue

impl Sync for TransactionQueue