crate::ix!();
pub trait WriteBlock {
fn write_block(&mut self,
block: &Block,
pindex: *const BlockIndex) -> bool {
todo!();
}
}
pub trait CommitInternal {
fn commit_internal(&mut self, batch: &mut DBBatch) -> bool;
}
pub trait Rewind {
fn rewind(&mut self,
current_tip: *const BlockIndex,
new_tip: *const BlockIndex) -> bool;
}