Skip to content

Commit 369fe76

Browse files
committed
Attributable failures optional feature bit
Signal to senders that the node will return attributable failures. When the sender makes sure all path nodes supports this, they will be able to attribute every failure that may occur.
1 parent d6b6686 commit 369fe76

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed

lightning-types/src/features.rs

+14-4
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ mod sealed {
154154
// Byte 3
155155
RouteBlinding | ShutdownAnySegwit | DualFund | Taproot,
156156
// Byte 4
157-
Quiescence | OnionMessages,
157+
Quiescence | OnionMessages | AttributableFailures,
158158
// Byte 5
159159
ProvideStorage | ChannelType | SCIDPrivacy,
160160
// Byte 6
@@ -175,7 +175,7 @@ mod sealed {
175175
// Byte 3
176176
RouteBlinding | ShutdownAnySegwit | DualFund | Taproot,
177177
// Byte 4
178-
Quiescence | OnionMessages,
178+
Quiescence | OnionMessages | AttributableFailures,
179179
// Byte 5
180180
ProvideStorage | ChannelType | SCIDPrivacy,
181181
// Byte 6
@@ -199,7 +199,7 @@ mod sealed {
199199
// Byte 3
200200
,
201201
// Byte 4
202-
,
202+
AttributableFailures,
203203
// Byte 5
204204
,
205205
// Byte 6
@@ -219,7 +219,7 @@ mod sealed {
219219
// Byte 3
220220
,
221221
// Byte 4
222-
,
222+
AttributableFailures,
223223
// Byte 5
224224
,
225225
// Byte 6
@@ -548,6 +548,16 @@ mod sealed {
548548
supports_quiescence,
549549
requires_quiescence
550550
);
551+
define_feature!(
552+
37,
553+
AttributableFailures,
554+
[InitContext, NodeContext, Bolt11InvoiceContext, Bolt12InvoiceContext],
555+
"Feature flags for `option_attributable_failures`.",
556+
set_attributable_failures_optional,
557+
set_attributable_failures_required,
558+
supports_attributable_failures,
559+
requires_attributable_failures
560+
);
551561
define_feature!(
552562
39,
553563
OnionMessages,

0 commit comments

Comments
 (0)