Skip to content

Commit 3ea1f7f

Browse files
committed
Support Trampoline flag in BOLT12 invoices
To construct and pay BOLT12 invoices supporting Trampoline payments, we need to add the Trampoline feature bit to the BOLT12 feature context.
1 parent 020be44 commit 3ea1f7f

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

lightning-types/src/features.rs

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,16 @@ mod sealed {
212212
,
213213
// Byte 2
214214
BasicMPP,
215+
// Byte 3
216+
,
217+
// Byte 4
218+
,
219+
// Byte 5
220+
,
221+
// Byte 6
222+
,
223+
// Byte 7
224+
Trampoline,
215225
]);
216226
define_context!(BlindedHopContext, []);
217227
// This isn't a "real" feature context, and is only used in the channel_type field in an
@@ -573,7 +583,7 @@ mod sealed {
573583
define_feature!(
574584
57,
575585
Trampoline,
576-
[InitContext, NodeContext, Bolt11InvoiceContext],
586+
[InitContext, NodeContext, Bolt11InvoiceContext, Bolt12InvoiceContext],
577587
"Feature flags for Trampoline routing.",
578588
set_trampoline_routing_optional,
579589
set_trampoline_routing_required,

0 commit comments

Comments
 (0)