diff --git a/src/Nethermind/Nethermind.JsonRpc.Benchmark/EthModuleBenchmarks.cs b/src/Nethermind/Nethermind.JsonRpc.Benchmark/EthModuleBenchmarks.cs index 9feef16a025..3568b93310a 100644 --- a/src/Nethermind/Nethermind.JsonRpc.Benchmark/EthModuleBenchmarks.cs +++ b/src/Nethermind/Nethermind.JsonRpc.Benchmark/EthModuleBenchmarks.cs @@ -63,6 +63,8 @@ public void GlobalSetup() stateProvider.Commit(spec); stateProvider.CommitTree(0); + WorldStateManager stateManager = new WorldStateManager(stateProvider, trieStore, dbProvider, LimboLogs.Instance); + StateReader stateReader = new(trieStore, codeDb, LimboLogs.Instance); ChainLevelInfoRepository chainLevelInfoRepository = new(blockInfoDb); @@ -120,8 +122,7 @@ TransactionProcessor transactionProcessor BlockchainBridge bridge = new( new ReadOnlyTxProcessingEnv( - new ReadOnlyDbProvider(dbProvider, false), - trieStore.AsReadOnly(), + stateManager, new ReadOnlyBlockTree(blockTree), specProvider, LimboLogs.Instance),