mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-01-18 05:12:45 +01:00
keysend: Announce keysend featurebit in node_announcement
The featurebit isn't quite settled.
This commit is contained in:
parent
e03acd9663
commit
97fb27650d
@ -3,6 +3,7 @@
|
||||
#include <wire/gen_onion_wire.h>
|
||||
|
||||
#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<ARRAY_SIZE(features.bits); i++)
|
||||
features.bits[i] = tal_arr(NULL, u8, 0);
|
||||
set_feature_bit(&features.bits[NODE_ANNOUNCE_FEATURE], KEYSEND_FEATUREBIT);
|
||||
|
||||
plugin_main(argv, init, PLUGIN_STATIC, &features, commands,
|
||||
ARRAY_SIZE(commands), NULL, 0, hooks, ARRAY_SIZE(hooks),
|
||||
NULL);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user