From 19cac84a7815d120aaeee3d66dad2c59d3d2929b Mon Sep 17 00:00:00 2001 From: Valentine Wallace Date: Fri, 14 May 2021 16:34:56 -0400 Subject: [PATCH] Advertise keysend feature C-Lightning requires this to send keysend payments. --- lightning/src/ln/features.rs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/lightning/src/ln/features.rs b/lightning/src/ln/features.rs index b459baf06..9ebcc7010 100644 --- a/lightning/src/ln/features.rs +++ b/lightning/src/ln/features.rs @@ -124,6 +124,12 @@ mod sealed { , // Byte 3 , + // Byte 4 + , + // Byte 5 + , + // Byte 6 + , ], optional_features: [ // Byte 0 @@ -134,6 +140,12 @@ mod sealed { BasicMPP, // Byte 3 ShutdownAnySegwit, + // Byte 4 + , + // Byte 5 + , + // Byte 6 + Keysend, ], }); define_context!(ChannelContext { @@ -299,6 +311,8 @@ mod sealed { define_feature!(27, ShutdownAnySegwit, [InitContext, NodeContext], "Feature flags for `opt_shutdown_anysegwit`.", set_shutdown_any_segwit_optional, set_shutdown_any_segwit_required); + define_feature!(55, Keysend, [NodeContext], + "Feature flags for keysend payments.", set_keysend_optional, set_keysend_required); #[cfg(test)] define_context!(TestingContext { -- 2.39.5