Struct ethcore::snapshot::PowRebuilder
[−]
[src]
pub struct PowRebuilder { /* fields omitted */ }
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
impl Rebuilder for PowRebuilder
[src]
impl Rebuilder for PowRebuilder
fn feed(
&mut self,
chunk: &[u8],
engine: &EthEngine,
abort_flag: &AtomicBool
) -> Result<(), Error>
[src]
fn feed(
&mut self,
chunk: &[u8],
engine: &EthEngine,
abort_flag: &AtomicBool
) -> Result<(), Error>
Feed the rebuilder an uncompressed block chunk. Returns the number of blocks fed or any errors.
fn finalize(&mut self, _: &EthEngine) -> Result<(), Error>
[src]
fn finalize(&mut self, _: &EthEngine) -> Result<(), Error>
Glue together any disconnected chunks and check that the chain is complete.
Auto Trait Implementations
impl Send for PowRebuilder
impl Send for PowRebuilder
impl Sync for PowRebuilder
impl Sync for PowRebuilder