MCPcopy Create free account
hub / github.com/ElementsProject/lightning / main

Function main

plugins/keysend.c:491–503  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

489};
490
491int main(int argc, char *argv[])
492{
493 struct feature_set *features = tal(NULL, struct feature_set);
494 setup_locale();
495
496 for (int i=0; i<ARRAY_SIZE(features->bits); i++)
497 features->bits[i] = tal_arr(features, u8, 0);
498 set_feature_bit(&features->bits[NODE_ANNOUNCE_FEATURE], KEYSEND_FEATUREBIT);
499
500 plugin_main(argv, init, PLUGIN_STATIC, true, features, commands,
501 ARRAY_SIZE(commands), NULL, 0, hooks, ARRAY_SIZE(hooks),
502 notification_topics, ARRAY_SIZE(notification_topics), NULL);
503}

Callers

nothing calls this directly

Calls 3

setup_localeFunction · 0.85
set_feature_bitFunction · 0.85
plugin_mainFunction · 0.85

Tested by

no test coverage detected