mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 15:14:23 +01:00
common/features: add explicit bolt12 feature sets.
The spec only specifies the mpp bit for invoices, but in general they are separate spaces. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
committed by
Christian Decker
parent
6e755d6fe8
commit
9a0d2040d3
@@ -635,8 +635,8 @@ static char *opt_force_featureset(const char *optarg,
|
||||
char **parts = tal_strsplit(tmpctx, optarg, "/", STR_EMPTY_OK);
|
||||
if (tal_count(parts) != NUM_FEATURE_PLACE + 1) {
|
||||
if (!strstarts(optarg, "-") && !strstarts(optarg, "+"))
|
||||
return "Expected 5 feature sets (init/globalinit/"
|
||||
" node_announce/channel/bolt11) each terminated by /"
|
||||
return "Expected 8 feature sets (init/globalinit/"
|
||||
" node_announce/channel/bolt11/b12offer/b12invreq/b12inv) each terminated by /"
|
||||
" OR +/-<single_bit_num>";
|
||||
|
||||
char *endp;
|
||||
|
||||
Reference in New Issue
Block a user