pub trait MaybeForkedDatabase {
// Required methods
fn maybe_reset(
&mut self,
_url: Option<String>,
block_number: BlockId,
) -> Result<(), String>;
fn maybe_flush_cache(&self) -> Result<(), String>;
fn maybe_inner(&self) -> Result<&BlockchainDb, String>;
}
Expand description
Helper trait to reset the DB if it’s forked