diff --git a/src/Nethermind/Nethermind.Runner/Ethereum/Steps/StartRpc.cs b/src/Nethermind/Nethermind.Runner/Ethereum/Steps/StartRpc.cs index b14bab90f5a..58af24a7d51 100644 --- a/src/Nethermind/Nethermind.Runner/Ethereum/Steps/StartRpc.cs +++ b/src/Nethermind/Nethermind.Runner/Ethereum/Steps/StartRpc.cs @@ -1,6 +1,7 @@ // SPDX-FileCopyrightText: 2022 Demerzel Solutions Limited // SPDX-License-Identifier: LGPL-3.0-only +using System; using System.Linq; using System.Threading; using System.Threading.Tasks; @@ -11,6 +12,7 @@ using Nethermind.JsonRpc; using Nethermind.JsonRpc.Modules; using Nethermind.JsonRpc.WebSockets; +using Nethermind.KeyStore.Config; using Nethermind.Logging; using Nethermind.Runner.JsonRpc; using Nethermind.Serialization.Json; @@ -30,6 +32,11 @@ public StartRpc(INethermindApi api) public async Task Execute(CancellationToken cancellationToken) { IJsonRpcConfig jsonRpcConfig = _api.Config(); + IKeyStoreConfig keyStoreConfig = _api.Config(); + + // updating jwt-secret path based on data directory. + jsonRpcConfig.JwtSecretFile = String.Concat(keyStoreConfig.KeyStoreDirectory,"/jwt-secret"); + ILogger logger = _api.LogManager.GetClassLogger(); if (jsonRpcConfig.Enabled) diff --git a/src/bench_precompiles b/src/bench_precompiles index 9c9705ed4e7..d083d17d367 160000 --- a/src/bench_precompiles +++ b/src/bench_precompiles @@ -1 +1 @@ -Subproject commit 9c9705ed4e7f264abc8f343a848016e7bf6501b3 +Subproject commit d083d17d3679b82585877a2d18829535d972546a