@@ -626,7 +626,7 @@ impl Readable for InterceptId {
626626}
627627
628628#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)]
629- pub(crate) struct PreviousHopIdData {
629+ pub(crate) struct PreviousHopId {
630630 short_channel_id: u64,
631631 htlc_id: u64,
632632}
@@ -636,7 +636,7 @@ pub(crate) struct PreviousHopIdData {
636636pub(crate) enum SentHTLCId {
637637 PreviousHopData { short_channel_id: u64, htlc_id: u64 },
638638 OutboundRoute { session_priv: [u8; SECRET_KEY_SIZE] },
639- TrampolineForward { session_priv: [u8; SECRET_KEY_SIZE], previous_hop_data : Vec<PreviousHopIdData > }
639+ TrampolineForward { session_priv: [u8; SECRET_KEY_SIZE], previous_hop_ids : Vec<PreviousHopId > }
640640}
641641impl SentHTLCId {
642642 pub(crate) fn from_source(source: &HTLCSource) -> Self {
@@ -649,15 +649,15 @@ impl SentHTLCId {
649649 Self::OutboundRoute { session_priv: session_priv.secret_bytes() },
650650 HTLCSource::TrampolineForward { previous_hop_data, session_priv, .. } => Self::TrampolineForward {
651651 session_priv: session_priv.secret_bytes(),
652- previous_hop_data : previous_hop_data.iter().map(|hop_data| PreviousHopIdData {
652+ previous_hop_ids : previous_hop_data.iter().map(|hop_data| PreviousHopId {
653653 short_channel_id: hop_data.short_channel_id,
654654 htlc_id: hop_data.htlc_id,
655655 }).collect(),
656656 },
657657 }
658658 }
659659}
660- impl_writeable_tlv_based!(PreviousHopIdData , {
660+ impl_writeable_tlv_based!(PreviousHopId , {
661661 (0, short_channel_id, required),
662662 (2, htlc_id, required),
663663});
0 commit comments