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

Function main

plugins/keysend.c:583–595  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

581};
582
583int main(int argc, char *argv[])
584{
585 struct feature_set *features = tal(NULL, struct feature_set);
586 setup_locale();
587
588 for (int i=0; i<ARRAY_SIZE(features->bits); i++)
589 features->bits[i] = tal_arr(features, u8, 0);
590 set_feature_bit(&features->bits[NODE_ANNOUNCE_FEATURE], KEYSEND_FEATUREBIT);
591
592 plugin_main(argv, init, NULL, PLUGIN_STATIC, true, features, commands,
593 ARRAY_SIZE(commands), NULL, 0, hooks, ARRAY_SIZE(hooks),
594 notification_topics, ARRAY_SIZE(notification_topics), NULL);
595}

Callers

nothing calls this directly

Calls 3

setup_localeFunction · 0.85
set_feature_bitFunction · 0.85
plugin_mainFunction · 0.70

Tested by

no test coverage detected