|
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` - send funds to a node without without knowing a direct path using nested onions |
| 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
|
@@ -168,6 +170,8 @@ mod sealed {
|
168 | 170 | ChannelType | SCIDPrivacy,
|
169 | 171 | // Byte 6
|
170 | 172 | ZeroConf | Keysend,
|
| 173 | + // Byte 7 |
| 174 | + Trampoline, |
171 | 175 | ]);
|
172 | 176 | define_context!(ChannelContext, []);
|
173 | 177 | define_context!(Bolt11InvoiceContext, [
|
@@ -420,6 +424,9 @@ mod sealed {
|
420 | 424 | define_feature!(55, Keysend, [NodeContext],
|
421 | 425 | "Feature flags for keysend payments.", set_keysend_optional, set_keysend_required,
|
422 | 426 | supports_keysend, requires_keysend);
|
| 427 | + define_feature!(57, Trampoline, [NodeContext], |
| 428 | + "Feature flags for Trampoline routing.", set_trampoline_routing_optional, set_trampoline_routing_required, |
| 429 | + supports_trampoline_routing, requires_trampoline_routing); |
423 | 430 | // Note: update the module-level docs when a new feature bit is added!
|
424 | 431 |
|
425 | 432 | #[cfg(test)]
|
|
0 commit comments