Struct ethcore::snapshot::service::Service[][src]

pub struct Service { /* fields omitted */ }

SnapshotService implementation. This controls taking snapshots and restoring from them.

Methods

impl Service
[src]

Create a new snapshot service from the given parameters.

Get a reference to the snapshot reader.

Tick the snapshot service. This will log any active snapshot being taken.

Take a snapshot at the block with the given number. calling this while a restoration is in progress or vice versa will lead to a race condition where the first one to finish will have their produced snapshot overwritten.

Initialize the restoration synchronously. The recover flag indicates whether to recover the restored snapshot.

Feed a state chunk to be processed synchronously.

Feed a block chunk to be processed synchronously.

Trait Implementations

impl SnapshotService for Service
[src]

Query the most recent manifest data.

Get the supported range of snapshot version numbers. None indicates warp sync isn't supported by the consensus engine. Read more

Get raw chunk for a given hash.

Returns a list of the completed chunks

Ask the snapshot service for the restoration status.

Begin snapshot restoration. If restoration in-progress, this will reset it. From this point on, any previous snapshot may become unavailable. Read more

Abort an in-progress restoration if there is one.

Feed a raw state chunk to the service to be processed asynchronously. no-op if not currently restoring. Read more

Feed a raw block chunk to the service to be processed asynchronously. no-op if currently restoring. Read more

Shutdown the Snapshot Service by aborting any ongoing restore

impl Drop for Service
[src]

Executes the destructor for this type. Read more

Auto Trait Implementations

impl Send for Service

impl Sync for Service