Skip to content

Commit aace2d3

Browse files
Rename OutboundOnionPayload::BlindedReceive::outgoing_cltv_value.
There is no outgoing HTLC for received HTLCs, so rename to be more accurate.
1 parent 4d38ee6 commit aace2d3

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

lightning/src/ln/msgs.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1748,7 +1748,7 @@ mod fuzzy_internal_msgs {
17481748
BlindedReceive {
17491749
amt_msat: u64,
17501750
total_msat: u64,
1751-
outgoing_cltv_value: u32,
1751+
cltv_expiry_height: u32,
17521752
encrypted_tlvs: Vec<u8>,
17531753
intro_node_blinding_point: Option<PublicKey>, // Set if the introduction node of the blinded path is the final node
17541754
}
@@ -2312,12 +2312,11 @@ impl Writeable for OutboundOnionPayload {
23122312
});
23132313
},
23142314
Self::BlindedReceive {
2315-
amt_msat, total_msat, outgoing_cltv_value, encrypted_tlvs,
2316-
intro_node_blinding_point,
2315+
amt_msat, total_msat, cltv_expiry_height, encrypted_tlvs, intro_node_blinding_point,
23172316
} => {
23182317
_encode_varint_length_prefixed_tlv!(w, {
23192318
(2, HighZeroBytesDroppedBigSize(*amt_msat), required),
2320-
(4, HighZeroBytesDroppedBigSize(*outgoing_cltv_value), required),
2319+
(4, HighZeroBytesDroppedBigSize(*cltv_expiry_height), required),
23212320
(10, *encrypted_tlvs, required_vec),
23222321
(12, intro_node_blinding_point, option),
23232322
(18, HighZeroBytesDroppedBigSize(*total_msat), required)

lightning/src/ln/onion_utils.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ pub(super) fn build_onion_payloads(path: &Path, total_msat: u64, mut recipient_o
192192
res.push(msgs::OutboundOnionPayload::BlindedReceive {
193193
amt_msat: *final_value_msat,
194194
total_msat,
195-
outgoing_cltv_value: cltv,
195+
cltv_expiry_height: cltv,
196196
encrypted_tlvs: blinded_hop.encrypted_payload.clone(),
197197
intro_node_blinding_point: blinding_point.take(),
198198
});

0 commit comments

Comments
 (0)