Struct ethcore::snapshot::PowSnapshot  [−][src]
Snapshot creation and restoration for PoW chains. This includes blocks from the head of the chain as a loose assurance that the chain is valid.
Fields
blocks: u64
                           Number of blocks from the head of the chain to include in the snapshot.
max_restore_blocks: u64
                           Number of to allow in the snapshot when restoring.
Methods
impl PowSnapshot[src] 
impl PowSnapshotpub fn new(blocks: u64, max_restore_blocks: u64) -> PowSnapshot[src] 
pub fn new(blocks: u64, max_restore_blocks: u64) -> PowSnapshotCreate a new instance.
Trait Implementations
impl Clone for PowSnapshot[src] 
impl Clone for PowSnapshotfn clone(&self) -> PowSnapshot[src] 
fn clone(&self) -> PowSnapshotReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src] 
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl Copy for PowSnapshot[src] 
impl Copy for PowSnapshotimpl PartialEq for PowSnapshot[src] 
impl PartialEq for PowSnapshotfn eq(&self, other: &PowSnapshot) -> bool[src] 
fn eq(&self, other: &PowSnapshot) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &PowSnapshot) -> bool[src] 
fn ne(&self, other: &PowSnapshot) -> boolThis method tests for !=.
impl SnapshotComponents for PowSnapshot[src] 
impl SnapshotComponents for PowSnapshotfn chunk_all(
    &mut self, 
    chain: &BlockChain, 
    block_at: H256, 
    chunk_sink: &mut ChunkSink, 
    preferred_size: usize
) -> Result<(), Error>[src] 
fn chunk_all(
    &mut self, 
    chain: &BlockChain, 
    block_at: H256, 
    chunk_sink: &mut ChunkSink, 
    preferred_size: usize
) -> Result<(), Error>Create secondary snapshot chunks; these corroborate the state data in the state chunks. Read more
fn rebuilder(
    &self, 
    chain: BlockChain, 
    db: Arc<BlockChainDB>, 
    manifest: &ManifestData
) -> Result<Box<Rebuilder>, Error>[src] 
fn rebuilder(
    &self, 
    chain: BlockChain, 
    db: Arc<BlockChainDB>, 
    manifest: &ManifestData
) -> Result<Box<Rebuilder>, Error>Create a rebuilder, which will have chunks fed into it in aribtrary order and then be finalized. Read more
fn min_supported_version(&self) -> u64[src] 
fn min_supported_version(&self) -> u64Minimum supported snapshot version number.
fn current_version(&self) -> u64[src] 
fn current_version(&self) -> u64Current version number
Auto Trait Implementations
impl Send for PowSnapshot
impl Send for PowSnapshotimpl Sync for PowSnapshot
impl Sync for PowSnapshot