features: make name of peer storage features match spec.

And we should always represent them as is, not as optional: it's
possible in future we could *require* "WANT_PEER_BACKUP_STORAGE".

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2023-02-04 16:18:24 +10:30
committed by Alex Myers
parent 68d9b21aec
commit f1fed40ac2
3 changed files with 18 additions and 12 deletions

View File

@@ -795,10 +795,10 @@ static const struct plugin_command commands[] = {
int main(int argc, char *argv[])
{
setup_locale();
struct feature_set *features = feature_set_for_feature(NULL, PEER_STORAGE_FEATURE);
struct feature_set *features = feature_set_for_feature(NULL, OPT_WANT_PEER_BACKUP_STORAGE);
feature_set_or(features,
take(feature_set_for_feature(NULL,
YOUR_PEER_STORAGE_FEATURE)));
OPT_PROVIDE_PEER_BACKUP_STORAGE)));
plugin_main(argv, init, PLUGIN_STATIC, true, features,
commands, ARRAY_SIZE(commands),