]> git.bitcoin.ninja Git - rust-lightning/commitdiff
Rename OutboundOnionPayload::BlindedReceive::outgoing_cltv_value.
authorValentine Wallace <vwallace@protonmail.com>
Wed, 13 Dec 2023 22:22:50 +0000 (17:22 -0500)
committerValentine Wallace <vwallace@protonmail.com>
Wed, 10 Jan 2024 15:56:24 +0000 (10:56 -0500)
There is no outgoing HTLC for received HTLCs, so rename to be more accurate.

lightning/src/ln/msgs.rs
lightning/src/ln/onion_utils.rs

index c0d19df53c4bdb65da8013ca5cb765f8ba6d9042..78702a3b8ed26106b5ffa7085f6dcfcfb65e5816 100644 (file)
@@ -1748,7 +1748,7 @@ mod fuzzy_internal_msgs {
                BlindedReceive {
                        amt_msat: u64,
                        total_msat: u64,
-                       outgoing_cltv_value: u32,
+                       cltv_expiry_height: u32,
                        encrypted_tlvs: Vec<u8>,
                        intro_node_blinding_point: Option<PublicKey>, // Set if the introduction node of the blinded path is the final node
                }
@@ -2312,12 +2312,11 @@ impl Writeable for OutboundOnionPayload {
                                });
                        },
                        Self::BlindedReceive {
-                               amt_msat, total_msat, outgoing_cltv_value, encrypted_tlvs,
-                               intro_node_blinding_point,
+                               amt_msat, total_msat, cltv_expiry_height, encrypted_tlvs, intro_node_blinding_point,
                        } => {
                                _encode_varint_length_prefixed_tlv!(w, {
                                        (2, HighZeroBytesDroppedBigSize(*amt_msat), required),
-                                       (4, HighZeroBytesDroppedBigSize(*outgoing_cltv_value), required),
+                                       (4, HighZeroBytesDroppedBigSize(*cltv_expiry_height), required),
                                        (10, *encrypted_tlvs, required_vec),
                                        (12, intro_node_blinding_point, option),
                                        (18, HighZeroBytesDroppedBigSize(*total_msat), required)
index 840ada4d137108e67f74281dc9c1f24ed4e69c41..a83f9dc5a64cd90e297c2d8de03f79405e7bcca0 100644 (file)
@@ -192,7 +192,7 @@ pub(super) fn build_onion_payloads(path: &Path, total_msat: u64, mut recipient_o
                                                res.push(msgs::OutboundOnionPayload::BlindedReceive {
                                                        amt_msat: *final_value_msat,
                                                        total_msat,
-                                                       outgoing_cltv_value: cltv,
+                                                       cltv_expiry_height: cltv,
                                                        encrypted_tlvs: blinded_hop.encrypted_payload.clone(),
                                                        intro_node_blinding_point: blinding_point.take(),
                                                });