diff --git a/crates/storage/store.rs b/crates/storage/store.rs index 633f21bdb1..7ac96f5f55 100644 --- a/crates/storage/store.rs +++ b/crates/storage/store.rs @@ -1074,6 +1074,8 @@ impl Store { self.engine.read_storage_snapshot(account_hash, start).await } + /// Fetches the latest valid ancestor for a block that was previously marked as invalid + /// Returns None if the block was never marked as invalid pub async fn get_latest_valid_ancestor( &self, block: BlockHash, @@ -1081,6 +1083,7 @@ impl Store { self.engine.get_latest_valid_ancestor(block).await } + /// Marks a block as invalid and sets its latest valid ancestor pub async fn set_latest_valid_ancestor( &self, bad_block: BlockHash,