Struct ethcore::snapshot::PoaSnapshot
source · [−]pub struct PoaSnapshot;
Expand description
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
sourceimpl SnapshotComponents for PoaSnapshot
impl SnapshotComponents for PoaSnapshot
sourcefn chunk_all(
&mut self,
chain: &BlockChain,
block_at: H256,
sink: &mut ChunkSink<'_>,
_progress: &Progress,
preferred_size: usize,
eip1559_transition: BlockNumber
) -> Result<(), Error>
fn chunk_all(
&mut self,
chain: &BlockChain,
block_at: H256,
sink: &mut ChunkSink<'_>,
_progress: &Progress,
preferred_size: usize,
eip1559_transition: BlockNumber
) -> Result<(), Error>
Create secondary snapshot chunks; these corroborate the state data in the state chunks. Read more
sourcefn rebuilder(
&self,
chain: BlockChain,
db: Arc<dyn BlockChainDB>,
manifest: &ManifestData
) -> Result<Box<dyn Rebuilder>, Error>
fn rebuilder(
&self,
chain: BlockChain,
db: Arc<dyn BlockChainDB>,
manifest: &ManifestData
) -> Result<Box<dyn Rebuilder>, Error>
Create a rebuilder, which will have chunks fed into it in aribtrary order and then be finalized. Read more
sourcefn min_supported_version(&self) -> u64
fn min_supported_version(&self) -> u64
Minimum supported snapshot version number.
sourcefn current_version(&self) -> u64
fn current_version(&self) -> u64
Current version number
Auto Trait Implementations
impl RefUnwindSafe for PoaSnapshot
impl Send for PoaSnapshot
impl Sync for PoaSnapshot
impl Unpin for PoaSnapshot
impl UnwindSafe for PoaSnapshot
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more