clementine_core::bitcoin_syncer

Function handle_reorg_events

Source
async fn handle_reorg_events(
    db: &Database,
    dbtx: DatabaseTransaction<'_, '_>,
    common_ancestor_height: u32,
) -> Result<(), BridgeError>
Expand description

Marks blocks above the common ancestor as non-canonical and emits reorg events.