pub trait Rebuilder: Send {
fn feed(
&mut self,
chunk: &[u8],
engine: &dyn EthEngine,
abort_flag: &AtomicBool
) -> Result<(), Error>;
fn finalize(&mut self, engine: &dyn EthEngine) -> Result<(), Error>;
}
Expand description
Restore from secondary snapshot chunks.
Required methods
Feed a chunk, potentially out of order.
Check abort_flag
periodically while doing heavy work. If set to false
, should bail with
Error::RestorationAborted
.