Skip to content

Commit 621b0d1

Browse files
MartinNikovPetarKirov
authored andcommitted
config(modules/nimbus-eth2): Make web3-signer-url list of string
1 parent 57177ec commit 621b0d1

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

modules/nimbus-eth2/args.nix

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,9 +107,9 @@ with lib; {
107107
};
108108

109109
web3-signer-url = mkOption {
110-
type = types.nullOr types.str;
111-
default = null;
112-
example = "http://localhost:9000/";
110+
type = types.listOf types.str;
111+
default = [];
112+
example = ["http://localhost:9000/"];
113113
description = mdDoc "Remote Web3Signer URL that will be used as a source of validators.";
114114
};
115115

modules/nimbus-eth2/default.nix

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,11 @@ in {
9494
then ''--web3-url=${concatStringsSep " --web3-url=" cfg.args.web3-urls}''
9595
else "";
9696

97+
web3SignerUrls = lib.pipe cfg.args.web3-signer-url [
98+
(builtins.map (x: "--web3-signer-url=${x}"))
99+
(builtins.concatStringsSep " ")
100+
];
101+
97102
payloadBuilder =
98103
if cfg.args.payload-builder.enable
99104
then "--payload-builder=true --payload-builder-url=${cfg.args.payload-builder.url}"
@@ -139,12 +144,13 @@ in {
139144
inherit pathReducer;
140145
};
141146
# filter out certain args which need to be treated differently
142-
specialArgs = ["--network" "--jwt-secret" "--web3-urls" "--trusted-node-url" "--backfill" "--payload-builder" "--keymanager-token-file"];
147+
specialArgs = ["--network" "--jwt-secret" "--web3-urls" "--web3-signer-url" "--trusted-node-url" "--backfill" "--payload-builder" "--keymanager-token-file"];
143148
isNormalArg = name: (findFirst (arg: hasPrefix arg name) null specialArgs) == null;
144149
filteredArgs = builtins.filter isNormalArg args;
145150
in ''
146151
${network} ${jwtSecret} \
147152
${web3Url} \
153+
${web3SignerUrls} \
148154
${dataDir} \
149155
${keymanagerTokenFile} \
150156
${payloadBuilder} \

0 commit comments

Comments
 (0)