From: Matt Corallo Date: Sun, 8 Jan 2023 04:18:26 +0000 (+0000) Subject: Add a bLIP-range feature flag for inbound fees X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=b030e3a70661c4c554755eca3fddbf55cc193414;p=rust-lightning Add a bLIP-range feature flag for inbound fees --- diff --git a/lightning/src/ln/features.rs b/lightning/src/ln/features.rs index a3c1b7f62..21270129a 100644 --- a/lightning/src/ln/features.rs +++ b/lightning/src/ln/features.rs @@ -131,6 +131,10 @@ mod sealed { ChannelType | SCIDPrivacy, // Byte 6 ZeroConf, + // Because bLIP features are required to start above 255, we need a lot of commas. + ,,,,,,,,,,,,,,,,,,,,,,,,,,,, + // Byte 35 + InboundFees, ]); define_context!(NodeContext, [ // Byte 0 @@ -147,6 +151,10 @@ mod sealed { ChannelType | SCIDPrivacy, // Byte 6 ZeroConf | Keysend, + // Because bLIP features are required to start above 255, we need a lot of commas. + ,,,,,,,,,,,,,,,,,,,,,,,,,,,, + // Byte 35 + InboundFees, ]); define_context!(ChannelContext, []); define_context!(InvoiceContext, [ @@ -376,6 +384,10 @@ mod sealed { "Feature flags for keysend payments.", set_keysend_optional, set_keysend_required, supports_keysend, requires_keysend); + define_feature!(283, InboundFees, [InitContext, NodeContext], + "Feature flags for inbound fees", set_inbound_fees_optional, set_inbound_fees_required, + supports_inbound_fees, requires_inbound_fees); + #[cfg(test)] define_feature!(123456789, UnknownFeature, [NodeContext, ChannelContext, InvoiceContext, OfferContext, InvoiceRequestContext, Bolt12InvoiceContext, BlindedHopContext],