Skip to content

Commit b828a14

Browse files
committed
Add trampoline feature flag.
1 parent 2c9dbb9 commit b828a14

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

lightning/src/ln/features.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,8 @@
6666
//! for more info).
6767
//! - `Keysend` - send funds to a node without an invoice
6868
//! (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).
6971
//!
7072
//! LDK knows about the following features, but does not support them:
7173
//! - `AnchorsNonzeroFeeHtlcTx` - the initial version of anchor outputs, which was later found to be
@@ -168,6 +170,8 @@ mod sealed {
168170
ChannelType | SCIDPrivacy,
169171
// Byte 6
170172
ZeroConf | Keysend,
173+
// Byte 7
174+
Trampoline,
171175
]);
172176
define_context!(ChannelContext, []);
173177
define_context!(Bolt11InvoiceContext, [
@@ -420,6 +424,9 @@ mod sealed {
420424
define_feature!(55, Keysend, [NodeContext],
421425
"Feature flags for keysend payments.", set_keysend_optional, set_keysend_required,
422426
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);
423430
// Note: update the module-level docs when a new feature bit is added!
424431

425432
#[cfg(test)]

0 commit comments

Comments
 (0)