Describe the feature
Right now we use CacheDB in a lot of places on RPC side:
|
let mut db = CacheDB::new(StateProviderDatabase::new(state)); |
feature-wise it is equivalent to State<DB> and behavior-wise State<DB> is more correct, so it should be beneficial to replace all CacheDB usage with State
Additional context
No response
Describe the feature
Right now we use
CacheDBin a lot of places on RPC side:reth/crates/rpc/rpc/src/debug.rs
Line 103 in 86c6004
feature-wise it is equivalent to
State<DB>and behavior-wiseState<DB>is more correct, so it should be beneficial to replace allCacheDBusage withStateAdditional context
No response