Skip to content

Commit 2c7ceb8

Browse files
endothermicdevrustyrussell
authored andcommitted
peer storage: advertise features as optional
Fixes: #6002 Changelog-None
1 parent 1800139 commit 2c7ceb8

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lightningd/options.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1081,9 +1081,11 @@ static char *opt_set_shutdown_wrong_funding(struct lightningd *ld)
10811081
static char *opt_set_peer_storage(struct lightningd *ld)
10821082
{
10831083
feature_set_or(ld->our_features,
1084-
take(feature_set_for_feature(NULL, OPT_PROVIDE_PEER_BACKUP_STORAGE)));
1084+
take(feature_set_for_feature(NULL,
1085+
OPTIONAL_FEATURE(OPT_PROVIDE_PEER_BACKUP_STORAGE))));
10851086
feature_set_or(ld->our_features,
1086-
take(feature_set_for_feature(NULL, OPT_WANT_PEER_BACKUP_STORAGE)));
1087+
take(feature_set_for_feature(NULL,
1088+
OPTIONAL_FEATURE(OPT_WANT_PEER_BACKUP_STORAGE))));
10871089
return NULL;
10881090
}
10891091

0 commit comments

Comments
 (0)