Trait bitcoin_index::Rewind
source · pub trait Rewind {
// Required method
fn rewind(
&mut self,
current_tip: *const BlockIndex,
new_tip: *const BlockIndex
) -> bool;
}
Required Methods§
sourcefn rewind(
&mut self,
current_tip: *const BlockIndex,
new_tip: *const BlockIndex
) -> bool
fn rewind( &mut self, current_tip: *const BlockIndex, new_tip: *const BlockIndex ) -> bool
| Rewind index to an earlier chain tip | during a chain reorg. The tip must be | an ancestor of the current best block. |