mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 23:24:27 +01:00
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:
committed by
Alex Myers
parent
68d9b21aec
commit
f1fed40ac2
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user