clightning: don't set datadir for bitcoin-cli plugin
This option is unneeded because `bitcoin-cli` auth and connection settings are already provided by other options like `bitcoin-rpcpassword`. In bitcoind versions prior to 29.0, option `datadir` (passed by clightning to `bitcoin-cli`) was therefore ignored. Since 29.0, option `datadir` is always checked for validity. This causes a file permission error because service clighting has no access to the bitcoin datadir. This is now fixed.
This commit is contained in:
parent
04b6a09be4
commit
815f2cd325
1 changed files with 1 additions and 7 deletions
|
|
@ -116,13 +116,7 @@ let
|
|||
network = bitcoind.makeNetworkName "bitcoin" "regtest";
|
||||
configFile = pkgs.writeText "config" ''
|
||||
network=${network}
|
||||
${
|
||||
if cfg.useBcliPlugin then ''
|
||||
bitcoin-datadir=${config.services.bitcoind.dataDir}
|
||||
'' else ''
|
||||
disable-plugin=bcli
|
||||
''
|
||||
}
|
||||
${optionalString (!cfg.useBcliPlugin) "disable-plugin=bcli"}
|
||||
${optionalString (cfg.proxy != null) "proxy=${cfg.proxy}"}
|
||||
always-use-proxy=${boolToString cfg.always-use-proxy}
|
||||
bind-addr=${cfg.address}:${toString cfg.port}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue