use crate::chaindef::BlockHash;
use anyhow::Result;
use async_trait::async_trait;

#[async_trait]
pub trait BlockUndoer {
    async fn undo_block(
        &self,
        blockhash: &BlockHash,
        height: u64,
        new_tip: &BlockHash,
    ) -> Result<()>;
}
