pub struct VerificationQueue<K: Kind> { /* private fields */ }
Expand description

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.

Implementations

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

release taken signal and call async ClientIoMessage::BlockVerified call to client so that it can continue verification. difference between sync and async is whose thread pool is used.

Reset verification ready signal so that it allows other threads to send IoMessage to Client

Returns true if there is nothing currently in the queue.

Returns true if there are descendants of the current best block in the processing 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

Executes the destructor for this type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.