1 2 3 4 5 6 7 8 9 10 11 12 13
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<()>; }