From 71a73cd4456f8fe668d8f8a9f694ee40ce63206a Mon Sep 17 00:00:00 2001 From: fmoletta Date: Mon, 5 May 2025 17:11:32 -0300 Subject: [PATCH] feat(docs): latest valid ancestor store methods --- crates/storage/store.rs | 3 +++ 1 file changed, 3 insertions(+) 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,