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

Function feature_name

common/features.c:424–486  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

422}
423
424const char *feature_name(const tal_t *ctx, size_t f)
425{
426 static const char *fnames[] = {
427 "option_data_loss_protect", /* 0/1 */
428 "option_initial_routing_sync",
429 "option_upfront_shutdown_script",
430 "option_gossip_queries",
431 "option_var_onion_optin",
432 "option_gossip_queries_ex", /* 10/11 */
433 "option_static_remotekey",
434 "option_payment_secret",
435 "option_basic_mpp",
436 "option_support_large_channel",
437 "option_anchor_outputs", /* 20/21 */
438 "option_anchors_zero_fee_htlc_tx",
439 "option_trampoline_routing", /* https://github.com/lightning/bolts/pull/836 */
440 "option_shutdown_anysegwit",
441 "option_dual_fund",
442 "option_amp", /* 30/31 */ /* https://github.com/lightning/bolts/pull/658 */
443 NULL,
444 "option_quiesce", /* https://github.com/lightning/bolts/pull/869 */
445 NULL,
446 "option_onion_messages", /* https://github.com/lightning/bolts/pull/759 */
447 "option_want_peer_backup", /* 40/41 */ /* https://github.com/lightning/bolts/pull/881 */
448 "option_provide_peer_backup", /* https://github.com/lightning/bolts/pull/881 */
449 "option_channel_type",
450 "option_scid_alias", /* https://github.com/lightning/bolts/pull/910 */
451 "option_payment_metadata",
452 "option_zeroconf", /* 50/51, https://github.com/lightning/bolts/pull/910 */
453 NULL,
454 "option_keysend",
455 NULL,
456 NULL,
457 NULL, /* 60/61 */
458 NULL,
459 NULL,
460 NULL,
461 NULL,
462 NULL, /* 70/71 */
463 NULL,
464 NULL,
465 NULL,
466 NULL,
467 NULL, /* 80/81 */
468 NULL,
469 NULL,
470 NULL,
471 NULL,
472 NULL, /* 90/91 */
473 NULL,
474 NULL,
475 NULL,
476 NULL,
477 NULL, /* 100/101 */
478 };
479
480 if (f / 2 >= ARRAY_SIZE(fnames) || !fnames[f / 2])
481 return tal_fmt(ctx, "option_unknown_%zu/%s",

Callers 2

list_supported_featuresFunction · 0.85
mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected