Skip to content

Replace CacheDB usage in RPC with State<DB> #19148

@klkvr

Description

@klkvr

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions