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 PowSnapshot
pub fn new(blocks: u64, max_restore_blocks: u64) -> PowSnapshot
[src]
pub fn new(blocks: u64, max_restore_blocks: u64) -> PowSnapshot
Create a new instance.
Trait Implementations
impl Clone for PowSnapshot
[src]
impl Clone for PowSnapshot
fn clone(&self) -> PowSnapshot
[src]
fn clone(&self) -> PowSnapshot
Returns 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 PowSnapshot
impl PartialEq for PowSnapshot
[src]
impl PartialEq for PowSnapshot
fn eq(&self, __arg_0: &PowSnapshot) -> bool
[src]
fn eq(&self, __arg_0: &PowSnapshot) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &PowSnapshot) -> bool
[src]
fn ne(&self, __arg_0: &PowSnapshot) -> bool
This method tests for !=
.
impl SnapshotComponents for PowSnapshot
[src]
impl SnapshotComponents for PowSnapshot
fn 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<KeyValueDB>,
manifest: &ManifestData
) -> Result<Box<Rebuilder>, Error>
[src]
fn rebuilder(
&self,
chain: BlockChain,
db: Arc<KeyValueDB>,
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) -> u64
Minimum supported snapshot version number.
fn current_version(&self) -> u64
[src]
fn current_version(&self) -> u64
Current version number
Auto Trait Implementations
impl Send for PowSnapshot
impl Send for PowSnapshot
impl Sync for PowSnapshot
impl Sync for PowSnapshot