Skip to content

Commit

Permalink
client: adjust vm execution with update cache
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrocheleau committed Aug 9, 2024
1 parent 4c6240f commit 5e1666d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/client/src/execution/vmexecution.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import { MCLBLS, RustBN254 } from '@ethereumjs/evm'
import { getGenesis } from '@ethereumjs/genesis'
import {
CacheType,
Caches,
DefaultStateManager,
StatelessVerkleStateManager,
} from '@ethereumjs/statemanager'
Expand Down Expand Up @@ -164,7 +165,7 @@ export class VMExecution extends Execution {
const stateManager = new DefaultStateManager({
trie,
prefixStorageTrieKeys: this.config.prefixStorageTrieKeys,
cachesOpts: {
caches: new Caches({
accountCacheOpts: {
deactivate: false,
type: CacheType.LRU,
Expand All @@ -180,7 +181,7 @@ export class VMExecution extends Execution {
type: CacheType.LRU,
size: this.config.codeCache,
},
},
}),
common: this.config.chainCommon,
})

Expand Down

0 comments on commit 5e1666d

Please sign in to comment.