66
66
//! for more info).
67
67
//! - `Keysend` - send funds to a node without an invoice
68
68
//! (see the [`Keysend` feature assignment proposal](https://github.com/lightning/bolts/issues/605#issuecomment-606679798) for more information).
69
+ //! - `Trampoline` - supports receiving and forwarding Trampoline payments
70
+ //! (see the [`Trampoline` feature proposal](https://github.com/lightning/bolts/pull/836) for more information).
69
71
//!
70
72
//! LDK knows about the following features, but does not support them:
71
73
//! - `AnchorsNonzeroFeeHtlcTx` - the initial version of anchor outputs, which was later found to be
@@ -152,6 +154,8 @@ mod sealed {
152
154
ChannelType | SCIDPrivacy ,
153
155
// Byte 6
154
156
ZeroConf ,
157
+ // Byte 7
158
+ Trampoline ,
155
159
] ) ;
156
160
define_context ! ( NodeContext , [
157
161
// Byte 0
@@ -168,6 +172,8 @@ mod sealed {
168
172
ChannelType | SCIDPrivacy ,
169
173
// Byte 6
170
174
ZeroConf | Keysend ,
175
+ // Byte 7
176
+ Trampoline ,
171
177
] ) ;
172
178
define_context ! ( ChannelContext , [ ] ) ;
173
179
define_context ! ( Bolt11InvoiceContext , [
@@ -185,6 +191,8 @@ mod sealed {
185
191
,
186
192
// Byte 6
187
193
PaymentMetadata ,
194
+ // Byte 7
195
+ Trampoline ,
188
196
] ) ;
189
197
define_context ! ( OfferContext , [ ] ) ;
190
198
define_context ! ( InvoiceRequestContext , [ ] ) ;
@@ -420,6 +428,9 @@ mod sealed {
420
428
define_feature ! ( 55 , Keysend , [ NodeContext ] ,
421
429
"Feature flags for keysend payments." , set_keysend_optional, set_keysend_required,
422
430
supports_keysend, requires_keysend) ;
431
+ define_feature ! ( 57 , Trampoline , [ InitContext , NodeContext , Bolt11InvoiceContext ] ,
432
+ "Feature flags for Trampoline routing." , set_trampoline_routing_optional, set_trampoline_routing_required,
433
+ supports_trampoline_routing, requires_trampoline_routing) ;
423
434
// Note: update the module-level docs when a new feature bit is added!
424
435
425
436
#[ cfg( test) ]
0 commit comments