From 81e6b358ebb2a5bd888f8bd28f4fda12b259e234 Mon Sep 17 00:00:00 2001 From: Christian Decker Date: Tue, 31 Mar 2020 15:35:46 +0200 Subject: [PATCH] keysend: Announce keysend featurebit in node_announcement The featurebit isn't quite settled. --- plugins/keysend.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/plugins/keysend.c b/plugins/keysend.c index 40bc6ba35..c6d4065fa 100644 --- a/plugins/keysend.c +++ b/plugins/keysend.c @@ -3,6 +3,7 @@ #include #define PREIMAGE_TLV_TYPE 5482373484 +#define KEYSEND_FEATUREBIT 55 static void init(struct plugin *p, const char *buf UNUSED, const jsmntok_t *config UNUSED) @@ -128,10 +129,14 @@ static const struct plugin_hook hooks[] = { int main(int argc, char *argv[]) { + struct feature_set features; setup_locale(); - plugin_main(argv, init, PLUGIN_RESTARTABLE, commands, ARRAY_SIZE(commands), - NULL, 0, hooks, ARRAY_SIZE(hooks), NULL); - plugin_main(argv, init, PLUGIN_RESTARTABLE, NULL, commands, + + for (int i=0; i