]> git.bitcoin.ninja Git - rust-lightning/blobdiff - lightning/src/ln/onion_utils.rs
Receive payment onions as new InboundPayload instead of OnionHopData
[rust-lightning] / lightning / src / ln / onion_utils.rs
index 52eb7bcb54298a7cc8e8fc418f77d4de66babd69..a915cf29d51b385246690a40038b3ba49929909a 100644 (file)
@@ -763,11 +763,11 @@ impl NextPacketBytes for Vec<u8> {
 pub(crate) enum Hop {
        /// This onion payload was for us, not for forwarding to a next-hop. Contains information for
        /// verifying the incoming payment.
-       Receive(msgs::OnionHopData),
+       Receive(msgs::InboundOnionPayload),
        /// This onion payload needs to be forwarded to a next-hop.
        Forward {
                /// Onion payload data used in forwarding the payment.
-               next_hop_data: msgs::OnionHopData,
+               next_hop_data: msgs::InboundOnionPayload,
                /// HMAC of the next hop's onion packet.
                next_hop_hmac: [u8; 32],
                /// Bytes of the onion packet we're forwarding.