We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent de572d7 commit 81107e1Copy full SHA for 81107e1
crates/metering/src/meter.rs
@@ -83,7 +83,7 @@ where
83
// Create state database
84
let state_db = reth::revm::database::StateProviderDatabase::new(state_provider);
85
86
- // If we have flashblocks state, apply both cache and bundle prestate
+ // Apply flashblocks read cache if available
87
let cache_db = if let Some(ref flashblocks) = flashblocks_state {
88
CacheDB {
89
cache: flashblocks.cache.clone(),
@@ -93,7 +93,7 @@ where
93
CacheDB::new(state_db)
94
};
95
96
- // Wrap the CacheDB in a State to track bundle changes for state root calculation
+ // Track bundle state changes. If metering using flashblocks state, include its bundle prestate.
97
let mut db = if let Some(flashblocks) = flashblocks_state.as_ref() {
98
State::builder()
99
.with_database(cache_db)
0 commit comments