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 raw chunk for a given hash.

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

Give the restoration in-progress some canonical block hashes for extra verification (performed at the end) Read more

impl Drop for Service
[src]

A method called when the value goes out of scope. Read more