Skip to content

Commit

Permalink
chore: relax state generic (bluealloy#881)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattsse authored Nov 24, 2023
1 parent 91aa106 commit 7a37d8d
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 3 deletions.
24 changes: 22 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion crates/revm/src/db/states/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ pub type StateDBBox<'a, E> = State<DBBox<'a, E>>;
/// State clear flag is set inside CacheState and by default it is enabled.
/// If you want to disable it use `set_state_clear_flag` function.
#[derive(Debug)]
pub struct State<DB: Database> {
pub struct State<DB> {
/// Cached state contains both changed from evm execution and cached/loaded account/storages
/// from database. This allows us to have only one layer of cache where we can fetch data.
/// Additionally we can introduce some preloading of data from database.
Expand Down

0 comments on commit 7a37d8d

Please sign in to comment.