Skip to content

Commit

Permalink
common/features: add option_wumbo_htlcs
Browse files Browse the repository at this point in the history
Imported from lightning/bolts#877

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
  • Loading branch information
rustyrussell committed Jun 9, 2021
1 parent aa6764d commit 5e8388c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
6 changes: 5 additions & 1 deletion common/features.c
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,10 @@ static const struct feature_style feature_styles[] = {
.copy_style = { [INIT_FEATURE] = FEATURE_REPRESENT,
[NODE_ANNOUNCE_FEATURE] = FEATURE_REPRESENT,
[CHANNEL_FEATURE] = FEATURE_DONT_REPRESENT } },
{ OPT_WUMBO_HTLCS,
.copy_style = { [INIT_FEATURE] = FEATURE_REPRESENT,
[NODE_ANNOUNCE_FEATURE] = FEATURE_REPRESENT,
[CHANNEL_FEATURE] = FEATURE_DONT_REPRESENT} },
};

struct dependency {
Expand Down Expand Up @@ -394,7 +398,7 @@ static const char *feature_name(const tal_t *ctx, size_t f)
"option_shutdown_anysegwit",
"option_dual_fund",
NULL, /* 30/31 */
NULL,
"option_wumbo_htlcs",
NULL,
NULL,
NULL,
Expand Down
5 changes: 5 additions & 0 deletions common/features.h
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,11 @@ const char *fmt_featurebits(const tal_t *ctx, const u8 *featurebits);
*/
#define OPT_DUAL_FUND 28

/* BOLT-bbd0daee0a86c45e377b8a0a4ee7f1fc26d080e9 #9:
* | 32/23 | `option_wumbo_htlcs` | ... IN ...
*/
#define OPT_WUMBO_HTLCS 32

/* BOLT-9fc25cfd2895578c0b1ab701ebe6c1eb67a19623 #9:
*
* | 102/103 | `option_onion_messages` |... INC+ ...
Expand Down

0 comments on commit 5e8388c

Please sign in to comment.