Skip to content

Commit 76b3e41

Browse files
ekimberaldoborrero
authored andcommitted
separate nethermind JSON RPC host and EngineHost options
1 parent 82f5bf7 commit 76b3e41

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

modules/nethermind/args.nix

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,12 @@ with lib; {
6868
description = "Defines whether the JSON RPC service is enabled on node startup.";
6969
};
7070

71+
Host = mkOption {
72+
type = types.str;
73+
default = "127.0.0.1";
74+
description = "Host for JSON RPC calls.";
75+
};
76+
7177
Port = mkOption {
7278
type = types.port;
7379
default = 8545;
@@ -83,7 +89,7 @@ with lib; {
8389
EngineHost = mkOption {
8490
type = types.str;
8591
default = "127.0.0.1";
86-
description = "Host for JSON RPC calls.";
92+
description = "Host for Execution Engine RPC calls.";
8793
};
8894

8995
EnginePort = mkOption {

modules/nethermind/default.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ in {
126126
description = "Nethermind Node (${nethermindName})";
127127

128128
environment = {
129-
WEB3_HTTP_HOST = cfg.args.modules.JsonRpc.EngineHost;
129+
WEB3_HTTP_HOST = cfg.args.modules.JsonRpc.Host;
130130
WEB3_HTTP_PORT = builtins.toString cfg.args.modules.JsonRpc.Port;
131131
};
132132

0 commit comments

Comments
 (0)