bitcoind: fix error when defining passwordHMAC for RPC users

This commit is contained in:
Erik Arvstedt 2022-01-07 03:32:07 +01:00
parent 5a24f2afb2
commit bf92d6094d
No known key found for this signature in database
GPG Key ID: 33312B944DD97846

View File

@ -318,7 +318,7 @@ let
${optionalString (cfg.rpc.threads != null) "rpcthreads=${toString cfg.rpc.threads}"} ${optionalString (cfg.rpc.threads != null) "rpcthreads=${toString cfg.rpc.threads}"}
rpcwhitelistdefault=0 rpcwhitelistdefault=0
${concatMapStrings (user: '' ${concatMapStrings (user: ''
${optionalString (!user.passwordHMACFromFile) "rpcauth=${user.name}:${passwordHMAC}"} ${optionalString (!user.passwordHMACFromFile) "rpcauth=${user.name}:${user.passwordHMAC}"}
${optionalString (user.rpcwhitelist != []) ${optionalString (user.rpcwhitelist != [])
"rpcwhitelist=${user.name}:${lib.strings.concatStringsSep "," user.rpcwhitelist}"} "rpcwhitelist=${user.name}:${lib.strings.concatStringsSep "," user.rpcwhitelist}"}
'') (builtins.attrValues cfg.rpc.users) '') (builtins.attrValues cfg.rpc.users)