Skip to content

Commit b20a9ad

Browse files
Rename OutboundOnionPayload::BlindedReceive::amt_msat to be more descriptive.
1 parent c76d74a commit b20a9ad

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

lightning/src/ln/msgs.rs

+4-3
Original file line numberDiff line numberDiff line change
@@ -1746,7 +1746,7 @@ mod fuzzy_internal_msgs {
17461746
intro_node_blinding_point: Option<PublicKey>,
17471747
},
17481748
BlindedReceive {
1749-
amt_msat: u64,
1749+
sender_intended_htlc_amt_msat: u64,
17501750
total_msat: u64,
17511751
cltv_expiry_height: u32,
17521752
encrypted_tlvs: Vec<u8>,
@@ -2312,10 +2312,11 @@ impl Writeable for OutboundOnionPayload {
23122312
});
23132313
},
23142314
Self::BlindedReceive {
2315-
amt_msat, total_msat, cltv_expiry_height, encrypted_tlvs, intro_node_blinding_point,
2315+
sender_intended_htlc_amt_msat, total_msat, cltv_expiry_height, encrypted_tlvs,
2316+
intro_node_blinding_point,
23162317
} => {
23172318
_encode_varint_length_prefixed_tlv!(w, {
2318-
(2, HighZeroBytesDroppedBigSize(*amt_msat), required),
2319+
(2, HighZeroBytesDroppedBigSize(*sender_intended_htlc_amt_msat), required),
23192320
(4, HighZeroBytesDroppedBigSize(*cltv_expiry_height), required),
23202321
(10, *encrypted_tlvs, required_vec),
23212322
(12, intro_node_blinding_point, option),

lightning/src/ln/onion_utils.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ pub(super) fn build_onion_payloads(path: &Path, total_msat: u64, mut recipient_o
190190
cur_value_msat += final_value_msat;
191191
cur_cltv += excess_final_cltv_expiry_delta;
192192
res.push(msgs::OutboundOnionPayload::BlindedReceive {
193-
amt_msat: *final_value_msat,
193+
sender_intended_htlc_amt_msat: *final_value_msat,
194194
total_msat,
195195
cltv_expiry_height: cltv,
196196
encrypted_tlvs: blinded_hop.encrypted_payload.clone(),

0 commit comments

Comments
 (0)