Trait vapcore_snapshot::SnapshotClient[][src]

pub trait SnapshotClient: BlockChainClient + BlockInfo + DatabaseRestore + BlockChainReset {
    fn take_snapshot<W: SnapshotWriter + Send>(
        &self,
        writer: W,
        at: BlockId,
        p: &RwLock<Progress>
    ) -> Result<(), Error>; }

Snapshot related functionality

Required methods

fn take_snapshot<W: SnapshotWriter + Send>(
    &self,
    writer: W,
    at: BlockId,
    p: &RwLock<Progress>
) -> Result<(), Error>
[src]

Take a snapshot at the given block. If the BlockId is ‘Latest’, this will default to 1000 blocks behind.

Loading content...

Implementors

Loading content...