From a04158d9427c49c8cbbd21c2274422b5fb34e46e Mon Sep 17 00:00:00 2001 From: Gabriel Rocheleau Date: Fri, 9 Aug 2024 06:35:57 -0400 Subject: [PATCH] client: fix vmexecution statemanager cache opts --- packages/client/src/execution/vmexecution.ts | 30 +++++++++++--------- 1 file changed, 16 insertions(+), 14 deletions(-) diff --git a/packages/client/src/execution/vmexecution.ts b/packages/client/src/execution/vmexecution.ts index c47c0673a1..dcdf1e86ca 100644 --- a/packages/client/src/execution/vmexecution.ts +++ b/packages/client/src/execution/vmexecution.ts @@ -164,20 +164,22 @@ export class VMExecution extends Execution { const stateManager = new DefaultStateManager({ trie, prefixStorageTrieKeys: this.config.prefixStorageTrieKeys, - accountCacheOpts: { - deactivate: false, - type: CacheType.LRU, - size: this.config.accountCache, - }, - storageCacheOpts: { - deactivate: false, - type: CacheType.LRU, - size: this.config.storageCache, - }, - codeCacheOpts: { - deactivate: false, - type: CacheType.LRU, - size: this.config.codeCache, + cachesOpts: { + accountCacheOpts: { + deactivate: false, + type: CacheType.LRU, + size: this.config.accountCache, + }, + storageCacheOpts: { + deactivate: false, + type: CacheType.LRU, + size: this.config.storageCache, + }, + codeCacheOpts: { + deactivate: false, + type: CacheType.LRU, + size: this.config.codeCache, + }, }, common: this.config.chainCommon, })