mirror of
https://github.com/lightningdevkit/rust-lightning.git
synced 2025-02-25 15:20:24 +01:00
Rename InboundOnionPayload::BlindedReceive::outgoing_cltv_value.
There is no outgoing HTLC for received HTLCs, so rename to be more accurate.
This commit is contained in:
parent
b8fa547c66
commit
7c3ef195c4
2 changed files with 4 additions and 4 deletions
|
@ -1719,7 +1719,7 @@ mod fuzzy_internal_msgs {
|
||||||
BlindedReceive {
|
BlindedReceive {
|
||||||
amt_msat: u64,
|
amt_msat: u64,
|
||||||
total_msat: u64,
|
total_msat: u64,
|
||||||
outgoing_cltv_value: u32,
|
cltv_expiry_height: u32,
|
||||||
payment_secret: PaymentSecret,
|
payment_secret: PaymentSecret,
|
||||||
payment_constraints: PaymentConstraints,
|
payment_constraints: PaymentConstraints,
|
||||||
intro_node_blinding_point: Option<PublicKey>,
|
intro_node_blinding_point: Option<PublicKey>,
|
||||||
|
@ -2403,7 +2403,7 @@ impl<NS: Deref> ReadableArgs<(Option<PublicKey>, &NS)> for InboundOnionPayload w
|
||||||
Ok(Self::BlindedReceive {
|
Ok(Self::BlindedReceive {
|
||||||
amt_msat: amt.ok_or(DecodeError::InvalidValue)?,
|
amt_msat: amt.ok_or(DecodeError::InvalidValue)?,
|
||||||
total_msat: total_msat.ok_or(DecodeError::InvalidValue)?,
|
total_msat: total_msat.ok_or(DecodeError::InvalidValue)?,
|
||||||
outgoing_cltv_value: cltv_value.ok_or(DecodeError::InvalidValue)?,
|
cltv_expiry_height: cltv_value.ok_or(DecodeError::InvalidValue)?,
|
||||||
payment_secret,
|
payment_secret,
|
||||||
payment_constraints,
|
payment_constraints,
|
||||||
intro_node_blinding_point,
|
intro_node_blinding_point,
|
||||||
|
|
|
@ -131,7 +131,7 @@ pub(super) fn create_recv_pending_htlc_info(
|
||||||
(payment_data, keysend_preimage, custom_tlvs, amt_msat, cltv_expiry_height, payment_metadata,
|
(payment_data, keysend_preimage, custom_tlvs, amt_msat, cltv_expiry_height, payment_metadata,
|
||||||
false),
|
false),
|
||||||
msgs::InboundOnionPayload::BlindedReceive {
|
msgs::InboundOnionPayload::BlindedReceive {
|
||||||
amt_msat, total_msat, outgoing_cltv_value, payment_secret, intro_node_blinding_point,
|
amt_msat, total_msat, cltv_expiry_height, payment_secret, intro_node_blinding_point,
|
||||||
payment_constraints, ..
|
payment_constraints, ..
|
||||||
} => {
|
} => {
|
||||||
check_blinded_payment_constraints(amt_msat, cltv_expiry, &payment_constraints)
|
check_blinded_payment_constraints(amt_msat, cltv_expiry, &payment_constraints)
|
||||||
|
@ -143,7 +143,7 @@ pub(super) fn create_recv_pending_htlc_info(
|
||||||
}
|
}
|
||||||
})?;
|
})?;
|
||||||
let payment_data = msgs::FinalOnionHopData { payment_secret, total_msat };
|
let payment_data = msgs::FinalOnionHopData { payment_secret, total_msat };
|
||||||
(Some(payment_data), None, Vec::new(), amt_msat, outgoing_cltv_value, None,
|
(Some(payment_data), None, Vec::new(), amt_msat, cltv_expiry_height, None,
|
||||||
intro_node_blinding_point.is_none())
|
intro_node_blinding_point.is_none())
|
||||||
}
|
}
|
||||||
msgs::InboundOnionPayload::Forward { .. } => {
|
msgs::InboundOnionPayload::Forward { .. } => {
|
||||||
|
|
Loading…
Add table
Reference in a new issue