pub struct PowRebuilder { /* private fields */ }
Expand description

Rebuilder for proof-of-work chains. Does basic verification for all blocks, but PoW verification for some. Blocks must be fed in-order.

The first block in every chunk is disconnected from the last block in the chunk before it, as chunks may be submitted out-of-order.

After all chunks have been submitted, we “glue” the chunks together.

Trait Implementations

Feed the rebuilder an uncompressed block chunk. Returns the number of blocks fed or any errors.

Glue together any disconnected chunks and check that the chain is complete.

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.