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.

Important traits for Vec<u8>

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> Drop for VerificationQueue<K>
[src]

Executes the destructor for this type. Read more

Auto Trait Implementations

impl<K> Send for VerificationQueue<K> where
    <K as Kind>::Unverified: Send,
    <K as Kind>::Verified: Send

impl<K> Sync for VerificationQueue<K> where
    <K as Kind>::Unverified: Send,
    <K as Kind>::Verified: Send