Skip to content

Commit

Permalink
Rename OutboundOnionPayload::BlindedReceive::amt_msat to be more desc…
Browse files Browse the repository at this point in the history
…riptive.
  • Loading branch information
valentinewallace committed Jan 10, 2024
1 parent c76d74a commit b20a9ad
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions lightning/src/ln/msgs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1746,7 +1746,7 @@ mod fuzzy_internal_msgs {
intro_node_blinding_point: Option<PublicKey>,
},
BlindedReceive {
amt_msat: u64,
sender_intended_htlc_amt_msat: u64,
total_msat: u64,
cltv_expiry_height: u32,
encrypted_tlvs: Vec<u8>,
Expand Down Expand Up @@ -2312,10 +2312,11 @@ impl Writeable for OutboundOnionPayload {
});
},
Self::BlindedReceive {
amt_msat, total_msat, cltv_expiry_height, encrypted_tlvs, intro_node_blinding_point,
sender_intended_htlc_amt_msat, total_msat, cltv_expiry_height, encrypted_tlvs,
intro_node_blinding_point,
} => {
_encode_varint_length_prefixed_tlv!(w, {
(2, HighZeroBytesDroppedBigSize(*amt_msat), required),
(2, HighZeroBytesDroppedBigSize(*sender_intended_htlc_amt_msat), required),
(4, HighZeroBytesDroppedBigSize(*cltv_expiry_height), required),
(10, *encrypted_tlvs, required_vec),
(12, intro_node_blinding_point, option),
Expand Down
2 changes: 1 addition & 1 deletion lightning/src/ln/onion_utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ pub(super) fn build_onion_payloads(path: &Path, total_msat: u64, mut recipient_o
cur_value_msat += final_value_msat;
cur_cltv += excess_final_cltv_expiry_delta;
res.push(msgs::OutboundOnionPayload::BlindedReceive {
amt_msat: *final_value_msat,
sender_intended_htlc_amt_msat: *final_value_msat,
total_msat,
cltv_expiry_height: cltv,
encrypted_tlvs: blinded_hop.encrypted_payload.clone(),
Expand Down

0 comments on commit b20a9ad

Please sign in to comment.