From 643e415448fff822e8aea6d3d7e14fe467d4a4e3 Mon Sep 17 00:00:00 2001 From: ziggie Date: Wed, 6 Nov 2024 18:34:00 +0100 Subject: [PATCH] scripts: dont check new config value. Because we need to remain backwards compatible with the old `dust-threshold` value we set the default value for `channel-max-fee-exposure` later in the program flow. Given the restrictions of the sample config check we need to exclude this value from the check. --- scripts/check-sample-lnd-conf.sh | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/scripts/check-sample-lnd-conf.sh b/scripts/check-sample-lnd-conf.sh index ba96a637c..48cbad7f6 100755 --- a/scripts/check-sample-lnd-conf.sh +++ b/scripts/check-sample-lnd-conf.sh @@ -54,11 +54,12 @@ OPTIONS_NO_CONF="help lnddir configfile version end" # OPTIONS_NO_LND_DEFAULT_VALUE_CHECK is a list of options with default values # set, but there aren't any returned defaults by lnd --help. Defaults have to be # included in sample-lnd.conf but no further checks are performed. -OPTIONS_NO_LND_DEFAULT_VALUE_CHECK="adminmacaroonpath readonlymacaroonpath \ - invoicemacaroonpath rpclisten restlisten listen backupfilepath maxchansize \ - bitcoin.chaindir bitcoin.defaultchanconfs bitcoin.defaultremotedelay \ - bitcoin.dnsseed signrpc.signermacaroonpath walletrpc.walletkitmacaroonpath \ - chainrpc.notifiermacaroonpath routerrpc.routermacaroonpath" +OPTIONS_NO_LND_DEFAULT_VALUE_CHECK="channel-max-fee-exposure adminmacaroonpath \ + readonlymacaroonpath invoicemacaroonpath rpclisten restlisten listen \ + backupfilepath maxchansize bitcoin.chaindir bitcoin.defaultchanconfs \ + bitcoin.defaultremotedelay bitcoin.dnsseed signrpc.signermacaroonpath \ + walletrpc.walletkitmacaroonpath chainrpc.notifiermacaroonpath \ + routerrpc.routermacaroonpath" # EXITCODE is returned at the end after all checks are performed and set to 1