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

Create secondary snapshot chunks; these corroborate the state data in the state chunks. Read more

Create a rebuilder, which will have chunks fed into it in aribtrary order and then be finalized. Read more

Minimum supported snapshot version number.

Current version number

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.