Struct ethcore::miner::Miner [] [src]

pub struct Miner { /* fields omitted */ }

Keeps track of transactions using priority queue and holds currently mined block. Handles preparing work for "work sealing" or seals "internally" if Engine does not require work.

Methods

impl Miner
[src]

Push listener that will handle new jobs

Set a callback to be notified about imported transactions' hashes.

Creates new instance of miner Arc.

Creates new instance of miner with given spec and accounts.

NOTE This should be only used for tests.

Clear all pending block states

Updates transaction queue verification limits.

Limits consist of current block gas limit and minimal gas price.

Trait Implementations

impl MinerService for Miner
[src]

Type representing chain state

Get current authoring parameters.

Set the lower and upper bound of gas limit we wish to target when sealing a new block.

Set the extra_data that we will seal blocks with.

Set info necessary to sign consensus messages and block authoring. Read more

Suggested gas price.

Suggested gas limit.

Important traits for Vec<u8>

Imports transactions to transaction queue.

Imports own (node owner) transaction to queue.

Get a list of local transactions with statuses.

Important traits for Vec<u8>

Get a list of all transactions in the pool (some of them might not be ready for inclusion yet).

Important traits for Vec<u8>

Get a list of all ready transactions either ordered by priority or unordered (cheaper). Read more

Returns next valid nonce for given address. Read more

Query transaction from the pool given it's hash.

Removes transaction from the pool. Read more

Get current queue status. Read more

Get a particular receipt from pending block.

Get a list of all pending receipts from pending block.

Update sealing if required. Prepare the block and work if the Engine does not seal internally.

Is it currently sealing?

Get the sealing work package preparing it if doesn't exist yet. Read more

Submit seal as a valid solution for the header of pow_hash. Will check the seal, but not actually insert the block into the chain. Read more

Called when blocks are imported to chain, updates transactions queue. is_internal_import indicates that the block has just been created in miner and internally sealed by the engine, so we shouldn't attempt creating new block again. Read more

Get Some clone() of the current pending block's state or None if we're not sealing.

Get Some clone() of the current pending block header or None if we're not sealing.

Get Some clone() of the current pending block or None if we're not sealing.

Get Some clone() of the current pending block transactions or None if we're not sealing.

Auto Trait Implementations

impl Send for Miner

impl Sync for Miner