Skip to content

Commit 81107e1

Browse files
committed
tweak comments
1 parent de572d7 commit 81107e1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/metering/src/meter.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ where
8383
// Create state database
8484
let state_db = reth::revm::database::StateProviderDatabase::new(state_provider);
8585

86-
// If we have flashblocks state, apply both cache and bundle prestate
86+
// Apply flashblocks read cache if available
8787
let cache_db = if let Some(ref flashblocks) = flashblocks_state {
8888
CacheDB {
8989
cache: flashblocks.cache.clone(),
@@ -93,7 +93,7 @@ where
9393
CacheDB::new(state_db)
9494
};
9595

96-
// Wrap the CacheDB in a State to track bundle changes for state root calculation
96+
// Track bundle state changes. If metering using flashblocks state, include its bundle prestate.
9797
let mut db = if let Some(flashblocks) = flashblocks_state.as_ref() {
9898
State::builder()
9999
.with_database(cache_db)

0 commit comments

Comments
 (0)