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

pub struct Miner {
    pub seals_internally: bool,
    // some 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.

Fields

Does the node perform internal (without work) sealing.

Methods

impl Miner
[src]

Push notifier that will handle new jobs

Creates new instance of miner Arc.

Creates new instance of miner with accounts and with given spec.

Creates new instance of miner without accounts, but with given spec.

Clear all pending block states

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 or None if we're not sealing.

Asynchronously updates minimal gas price for transaction queue

Trait Implementations

impl MinerService for Miner
[src]

Removes all transactions from the queue and restart mining operation.

Returns miner's status.

Call into contract code using pending state.

Latest account balance in pending state.

Get storage value in pending state.

Get account nonce in pending state.

Get contract code in pending state.

Set the author that we will seal blocks as.

Set info necessary to sign consensus messages.

Set the extra_data that we will seal blocks with.

Set the gas limit we wish to target when sealing a new block.

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

Set minimal gas price of transaction to be accepted for mining.

Get current minimal gas price for transactions accepted to queue.

Suggested gas price.

Suggested gas limit.

Get current transactions limit in queue.

Set maximal number of transactions kept in the queue (both current and future).

Set maximum amount of gas allowed for any single transaction to mine.

Get the author that we will seal blocks as.

Get the extra_data that we will seal blocks with.

Get the gas limit we wish to target when sealing a new block.

Get the gas limit we wish to target when sealing a new block.

Imports transactions to transaction queue.

Imports own (node owner) transaction to queue.

Get a list of all pending transactions in the queue.

Get a list of local transactions with statuses.

Get a list of all future transactions.

Get a list of all transactions that can go into the given block.

Returns hashes of transactions currently in pending

Query pending transactions for hash.

Get a particular reciept.

Get a list of all pending receipts.

Returns highest transaction nonce for given address.

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 and if Some, apply some transform.

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.