mirror of
https://github.com/lightningdevkit/rust-lightning.git
synced 2025-02-25 07:17:40 +01:00
Add missing keysend preimage check on inbound onion read.
This commit is contained in:
parent
ecd8238592
commit
6b66271acf
1 changed files with 3 additions and 1 deletions
|
@ -2362,7 +2362,9 @@ impl<NS: Deref> ReadableArgs<(Option<PublicKey>, &NS)> for InboundOnionPayload w
|
|||
}
|
||||
|
||||
if let Some(blinding_point) = intro_node_blinding_point.or(update_add_blinding_point) {
|
||||
if short_id.is_some() || payment_data.is_some() || payment_metadata.is_some() {
|
||||
if short_id.is_some() || payment_data.is_some() || payment_metadata.is_some() ||
|
||||
keysend_preimage.is_some()
|
||||
{
|
||||
return Err(DecodeError::InvalidValue)
|
||||
}
|
||||
let enc_tlvs = encrypted_tlvs_opt.ok_or(DecodeError::InvalidValue)?.0;
|
||||
|
|
Loading…
Add table
Reference in a new issue