Struct ethcore::snapshot::PoaSnapshot
[−]
[src]
pub struct PoaSnapshot;
Snapshot creation and restoration for PoA chains. Chunk format:
[FLAG, [header, epoch data], ...]
- Header data at which transition occurred,
- epoch data (usually list of validators and proof of change)
FLAG is a bool: true for last chunk, false otherwise.
The last item of the last chunk will be a list containing data for the warp target block: [header, transactions, uncles, receipts, parent_td].
Trait Implementations
impl SnapshotComponents for PoaSnapshot
[src]
impl SnapshotComponents for PoaSnapshot
fn chunk_all(
&mut self,
chain: &BlockChain,
block_at: H256,
sink: &mut ChunkSink,
preferred_size: usize
) -> Result<(), Error>
[src]
fn chunk_all(
&mut self,
chain: &BlockChain,
block_at: H256,
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 PoaSnapshot
impl Send for PoaSnapshot
impl Sync for PoaSnapshot
impl Sync for PoaSnapshot