From 2c7ceb8a21517a9374b8b14b361092ca0cae6e48 Mon Sep 17 00:00:00 2001 From: Alex Myers Date: Mon, 13 Feb 2023 08:37:41 -0600 Subject: [PATCH] peer storage: advertise features as optional Fixes: #6002 Changelog-None --- lightningd/options.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lightningd/options.c b/lightningd/options.c index 475c0d387..2ec7e3ec7 100644 --- a/lightningd/options.c +++ b/lightningd/options.c @@ -1081,9 +1081,11 @@ static char *opt_set_shutdown_wrong_funding(struct lightningd *ld) static char *opt_set_peer_storage(struct lightningd *ld) { feature_set_or(ld->our_features, - take(feature_set_for_feature(NULL, OPT_PROVIDE_PEER_BACKUP_STORAGE))); + take(feature_set_for_feature(NULL, + OPTIONAL_FEATURE(OPT_PROVIDE_PEER_BACKUP_STORAGE)))); feature_set_or(ld->our_features, - take(feature_set_for_feature(NULL, OPT_WANT_PEER_BACKUP_STORAGE))); + take(feature_set_for_feature(NULL, + OPTIONAL_FEATURE(OPT_WANT_PEER_BACKUP_STORAGE)))); return NULL; }