File tree Expand file tree Collapse file tree 3 files changed +2
-20
lines changed Expand file tree Collapse file tree 3 files changed +2
-20
lines changed Original file line number Diff line number Diff line change @@ -766,6 +766,8 @@ pub struct UpdateFailHTLC {
766766 /// The HTLC ID
767767 pub htlc_id : u64 ,
768768 pub ( crate ) reason : Vec < u8 > ,
769+
770+ /// Optional field for the attribution data that allows the sender to pinpoint the failing node under all conditions
769771 pub attribution_data : Option < [ u8 ; ATTRIBUTION_DATA_LEN ] >
770772}
771773/// An [`update_fail_malformed_htlc`] message to be sent to or received from a peer.
Original file line number Diff line number Diff line change @@ -1329,24 +1329,6 @@ where
13291329 }
13301330}
13311331
1332-
1333- struct AttributableFailure {
1334- failure_index : usize ,
1335-
1336- result : AttributableFailureResult ,
1337- }
1338-
1339- struct AttributableFailureSuccess {
1340- message : Vec < u8 > ,
1341- hold_times : Vec < u32 > ,
1342- }
1343-
1344- enum AttributableFailureResult {
1345- Success ( AttributableFailureSuccess ) ,
1346- InvalidPayload ,
1347- InvalidHmac
1348- }
1349-
13501332#[ derive( Clone ) ] // See Channel::revoke_and_ack for why, tl;dr: Rust bug
13511333#[ cfg_attr( test, derive( PartialEq ) ) ]
13521334pub ( super ) struct HTLCFailReason ( HTLCFailReasonRepr ) ;
Original file line number Diff line number Diff line change @@ -713,8 +713,6 @@ impl_array!(8, u16);
713713impl_array ! ( 32 , u16 ) ;
714714
715715impl_array ! ( 920 , u8 ) ;
716- impl_array ! ( 100 , u8 ) ;
717- impl_array ! ( 840 , u8 ) ;
718716
719717/// A type for variable-length values within TLV record where the length is encoded as part of the record.
720718/// Used to prevent encoding the length twice.
You can’t perform that action at this time.
0 commit comments