chore: move receipts pruning to provider (#13886)

This commit is contained in:
Arsenii Kulikov
2025-01-22 17:41:13 +04:00
committed by GitHub
parent cd44fc3d09
commit 23ebf96188
8 changed files with 75 additions and 250 deletions

View File

@ -232,6 +232,11 @@ impl<T> ExecutionOutcome<T> {
self.first_block
}
/// Return last block of the execution outcome
pub fn last_block(&self) -> BlockNumber {
(self.first_block + self.len() as u64).saturating_sub(1)
}
/// Revert the state to the given block number.
///
/// Returns false if the block number is not in the bundle state.