From 34546195be442ff7b11852f67582944f4ebe7426 Mon Sep 17 00:00:00 2001 From: Amirul Ashraf Date: Thu, 9 Nov 2023 20:20:35 +0800 Subject: [PATCH] Fix build --- .../Nethermind.JsonRpc.Benchmark/EthModuleBenchmarks.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Nethermind/Nethermind.JsonRpc.Benchmark/EthModuleBenchmarks.cs b/src/Nethermind/Nethermind.JsonRpc.Benchmark/EthModuleBenchmarks.cs index 4300f11f7f8..c846f9c8169 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),