Skip to content

Commit 50ccfa2

Browse files
committed
Add Taproot feature support.
1 parent 9b13862 commit 50ccfa2

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

lightning/src/ln/features.rs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ mod sealed {
143143
// Byte 2
144144
BasicMPP | Wumbo | AnchorsNonzeroFeeHtlcTx | AnchorsZeroFeeHtlcTx,
145145
// Byte 3
146-
ShutdownAnySegwit,
146+
ShutdownAnySegwit | Taproot,
147147
// Byte 4
148148
OnionMessages,
149149
// Byte 5
@@ -159,7 +159,7 @@ mod sealed {
159159
// Byte 2
160160
BasicMPP | Wumbo | AnchorsNonzeroFeeHtlcTx | AnchorsZeroFeeHtlcTx,
161161
// Byte 3
162-
ShutdownAnySegwit,
162+
ShutdownAnySegwit | Taproot,
163163
// Byte 4
164164
OnionMessages,
165165
// Byte 5
@@ -205,7 +205,7 @@ mod sealed {
205205
// Byte 2
206206
AnchorsNonzeroFeeHtlcTx | AnchorsZeroFeeHtlcTx,
207207
// Byte 3
208-
,
208+
Taproot,
209209
// Byte 4
210210
,
211211
// Byte 5
@@ -394,6 +394,9 @@ mod sealed {
394394
define_feature!(27, ShutdownAnySegwit, [InitContext, NodeContext],
395395
"Feature flags for `opt_shutdown_anysegwit`.", set_shutdown_any_segwit_optional,
396396
set_shutdown_any_segwit_required, supports_shutdown_anysegwit, requires_shutdown_anysegwit);
397+
define_feature!(31, Taproot, [InitContext, NodeContext, ChannelTypeContext],
398+
"Feature flags for `option_taproot`.", set_taproot_optional,
399+
set_taproot_required, supports_taproot, requires_taproot);
397400
define_feature!(39, OnionMessages, [InitContext, NodeContext],
398401
"Feature flags for `option_onion_messages`.", set_onion_messages_optional,
399402
set_onion_messages_required, supports_onion_messages, requires_onion_messages);

0 commit comments

Comments
 (0)