Struct ethcore::verification::queue::VerificationQueue [] [src]

pub struct VerificationQueue<K: Kind> { /* fields omitted */ }

A queue of items to be verified. Sits between network or other I/O and the BlockChain. Keeps them in the same order as inserted, minus invalid items.

Methods

impl<K: Kind> VerificationQueue<K>
[src]

Creates a new queue instance.

Clear the queue and stop verification activity.

Wait for unverified queue to be empty

Check if the item is currently in the queue

Add a block to the queue.

Mark given item and all its children as bad. pauses verification until complete.

Mark given item as processed. Returns true if the queue becomes empty.

Removes up to max verified items from the queue

Get queue status.

Get the total difficulty of all the blocks in the queue.

Get the current number of working verifiers.

Optimise memory footprint of the heap fields, and adjust the number of threads to better suit the workload.

Trait Implementations

impl<K: Kind> MayPanic for VerificationQueue<K>
[src]

closure will be invoked whenever panic in thread is caught

impl<K: Kind> Drop for VerificationQueue<K>
[src]

A method called when the value goes out of scope. Read more