Skip to content

Commit 4b631d6

Browse files
committed
f adjust blinded path spec compliance
1 parent f5e5c89 commit 4b631d6

File tree

1 file changed

+4
-12
lines changed

1 file changed

+4
-12
lines changed

lightning/src/ln/msgs.rs

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1677,6 +1677,7 @@ pub struct FinalOnionHopData {
16771677

16781678
mod fuzzy_internal_msgs {
16791679
use bitcoin::secp256k1::PublicKey;
1680+
use crate::blinded_path::BlindedPath;
16801681
use crate::blinded_path::payment::{PaymentConstraints, PaymentContext, PaymentRelay};
16811682
use crate::ln::types::{PaymentPreimage, PaymentSecret};
16821683
use crate::ln::features::BlindedHopFeatures;
@@ -1771,19 +1772,10 @@ mod fuzzy_internal_msgs {
17711772
},
17721773
#[allow(unused)]
17731774
BlindedForward {
1774-
encrypted_tlvs: Vec<u8>,
1775-
intro_node_blinding_point: Option<PublicKey>,
1775+
amt_to_forward: u64,
1776+
outgoing_cltv_value: u32,
1777+
payment_paths: Vec<BlindedPath>,
17761778
},
1777-
#[allow(unused)]
1778-
BlindedReceive {
1779-
sender_intended_htlc_amt_msat: u64,
1780-
total_msat: u64,
1781-
cltv_expiry_height: u32,
1782-
encrypted_tlvs: Vec<u8>,
1783-
intro_node_blinding_point: Option<PublicKey>, // Set if the introduction node of the blinded path is the final node
1784-
keysend_preimage: Option<PaymentPreimage>,
1785-
custom_tlvs: Vec<(u64, Vec<u8>)>,
1786-
}
17871779
}
17881780

17891781
pub struct DecodedOnionErrorPacket {

0 commit comments

Comments
 (0)