File tree Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 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 } \
You can’t perform that action at this time.
0 commit comments