Skip to content

Commit a5b5c4d

Browse files
committed
Add Taproot feature support.
1 parent 818dbdf commit a5b5c4d

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
@@ -136,7 +136,7 @@ mod sealed {
136136
// Byte 2
137137
BasicMPP | Wumbo | AnchorsZeroFeeHtlcTx,
138138
// Byte 3
139-
ShutdownAnySegwit,
139+
ShutdownAnySegwit | Taproot,
140140
// Byte 4
141141
OnionMessages,
142142
// Byte 5
@@ -152,7 +152,7 @@ mod sealed {
152152
// Byte 2
153153
BasicMPP | Wumbo | AnchorsZeroFeeHtlcTx,
154154
// Byte 3
155-
ShutdownAnySegwit,
155+
ShutdownAnySegwit | Taproot,
156156
// Byte 4
157157
OnionMessages,
158158
// Byte 5
@@ -198,7 +198,7 @@ mod sealed {
198198
// Byte 2
199199
AnchorsZeroFeeHtlcTx,
200200
// Byte 3
201-
,
201+
Taproot,
202202
// Byte 4
203203
,
204204
// Byte 5
@@ -384,6 +384,9 @@ mod sealed {
384384
define_feature!(27, ShutdownAnySegwit, [InitContext, NodeContext],
385385
"Feature flags for `opt_shutdown_anysegwit`.", set_shutdown_any_segwit_optional,
386386
set_shutdown_any_segwit_required, supports_shutdown_anysegwit, requires_shutdown_anysegwit);
387+
define_feature!(31, Taproot, [InitContext, NodeContext, ChannelTypeContext],
388+
"Feature flags for `option_taproot`.", set_taproot_optional,
389+
set_taproot_requires, supports_taproot, requires_taproot);
387390
define_feature!(39, OnionMessages, [InitContext, NodeContext],
388391
"Feature flags for `option_onion_messages`.", set_onion_messages_optional,
389392
set_onion_messages_required, supports_onion_messages, requires_onion_messages);

0 commit comments

Comments
 (0)