mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
chore: move receipts pruning to provider (#13886)
This commit is contained in:
@ -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.
|
||||
|
||||
Reference in New Issue
Block a user