Skip to content

Commit 972c0e0

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 d3c3447 commit 972c0e0

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed

lightning-types/src/features.rs

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ mod sealed {
156156
// Byte 3
157157
RouteBlinding | ShutdownAnySegwit | DualFund | Taproot,
158158
// Byte 4
159-
Quiescence | OnionMessages,
159+
Quiescence | OnionMessages | AttributableFailures,
160160
// Byte 5
161161
ProvideStorage | ChannelType | SCIDPrivacy | AnchorZeroFeeCommitments,
162162
// Byte 6
@@ -177,7 +177,7 @@ mod sealed {
177177
// Byte 3
178178
RouteBlinding | ShutdownAnySegwit | DualFund | Taproot,
179179
// Byte 4
180-
Quiescence | OnionMessages,
180+
Quiescence | OnionMessages | AttributableFailures,
181181
// Byte 5
182182
ProvideStorage | ChannelType | SCIDPrivacy | AnchorZeroFeeCommitments,
183183
// Byte 6
@@ -201,7 +201,7 @@ mod sealed {
201201
// Byte 3
202202
,
203203
// Byte 4
204-
,
204+
AttributableFailures,
205205
// Byte 5
206206
,
207207
// Byte 6
@@ -221,7 +221,7 @@ mod sealed {
221221
// Byte 3
222222
,
223223
// Byte 4
224-
,
224+
AttributableFailures,
225225
// Byte 5
226226
,
227227
// Byte 6
@@ -571,6 +571,16 @@ mod sealed {
571571
supports_quiescence,
572572
requires_quiescence
573573
);
574+
define_feature!(
575+
37,
576+
AttributableFailures,
577+
[InitContext, NodeContext, Bolt11InvoiceContext, Bolt12InvoiceContext],
578+
"Feature flags for `option_attributable_failures`.",
579+
set_attributable_failures_optional,
580+
set_attributable_failures_required,
581+
supports_attributable_failures,
582+
requires_attributable_failures
583+
);
574584
define_feature!(
575585
39,
576586
OnionMessages,

0 commit comments

Comments
 (0)