pub trait TxHashsetWriteStatus {
    fn on_setup(&self);
    fn on_validation_kernels(&self, kernels: u64, kernel_total: u64);
    fn on_validation_rproofs(&self, rproofs: u64, rproof_total: u64);
    fn on_save(&self);
    fn on_done(&self);
}
Expand description

Inform the caller of the current status of a txhashset write operation, as it can take quite a while to process. Each function is called in the order defined below and can be used to provide some feedback to the caller. Functions taking arguments can be called repeatedly to update those values as the processing progresses.

Required Methods

First setup of the txhashset

Starting kernel validation

Starting rproof validation

Starting to save the txhashset and related data

Done writing a new txhashset

Implementors