Skip to content

Commit b9cec80

Browse files
committed
remove unused code
1 parent 5ede316 commit b9cec80

File tree

3 files changed

+2
-20
lines changed

3 files changed

+2
-20
lines changed

lightning/src/ln/msgs.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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.

lightning/src/ln/onion_utils.rs

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff 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))]
13521334
pub(super) struct HTLCFailReason(HTLCFailReasonRepr);

lightning/src/util/ser.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -713,8 +713,6 @@ impl_array!(8, u16);
713713
impl_array!(32, u16);
714714

715715
impl_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.

0 commit comments

Comments
 (0)