Struct ethcore_rpc::v1::tests::helpers::TestSnapshotService [] [src]

pub struct TestSnapshotService { /* fields omitted */ }

Mocked snapshot service (used for sync info extensions).

Methods

impl TestSnapshotService
[src]

Create a test snapshot service. Only the status function matters -- it'll return Inactive by default.

Set the restoration status.

Trait Implementations

impl SnapshotService for TestSnapshotService
[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