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§

source

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. |

Implementors§