feat: add get_in_memory_or_storage_by_tx_range (#11414)

Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
This commit is contained in:
joshieDo
2024-10-02 19:45:06 +02:00
committed by GitHub
parent c4ce9977f2
commit 5ec448ef94
2 changed files with 158 additions and 18 deletions

View File

@ -618,6 +618,11 @@ impl BlockState {
self.block.clone()
}
/// Returns a reference to the executed block that determines the state.
pub const fn block_ref(&self) -> &ExecutedBlock {
&self.block
}
/// Returns the block with senders for the state.
pub fn block_with_senders(&self) -> BlockWithSenders {
let block = self.block.block().clone();