clightning: set "database-upgrade=true" for 22.11.1

This commit is contained in:
Jonas Nick 2022-12-17 12:43:33 +00:00
parent 875fac6862
commit d1b3a4617d
No known key found for this signature in database
GPG Key ID: 4861DBF262123605

View File

@ -117,6 +117,11 @@ let
rpc-file-mode=0660 rpc-file-mode=0660
log-timestamps=false log-timestamps=false
${optionalString (cfg.wallet != null) "wallet=${cfg.wallet}"} ${optionalString (cfg.wallet != null) "wallet=${cfg.wallet}"}
${ # TODO-EXTERNAL: When updating from a version of clightning before 22.11
# to version 22.11.1, then the database upgrade needs to be allowed
# explicitly. Remove this when it's unlikely that this module is used
# with a clightning version 22.11.1 package.
optionalString (cfg.package.version == "22.11.1") "database-upgrade=true"}
${cfg.extraConfig} ${cfg.extraConfig}
''; '';