@@ -3827,7 +3827,7 @@ mod tests {
3827
3827
}
3828
3828
3829
3829
fn dummy_blinded_path ( intro_node : PublicKey , payinfo : BlindedPayInfo ) -> BlindedPaymentPath {
3830
- BlindedPaymentPath :: from_raw (
3830
+ BlindedPaymentPath :: from_blinded_path_and_payinfo (
3831
3831
intro_node, ln_test_utils:: pubkey ( 42 ) ,
3832
3832
vec ! [
3833
3833
BlindedHop { blinded_node_id: ln_test_utils:: pubkey( 42 as u8 ) , encrypted_payload: Vec :: new( ) } ,
@@ -3838,7 +3838,7 @@ mod tests {
3838
3838
}
3839
3839
3840
3840
fn dummy_one_hop_blinded_path ( intro_node : PublicKey , payinfo : BlindedPayInfo ) -> BlindedPaymentPath {
3841
- BlindedPaymentPath :: from_raw (
3841
+ BlindedPaymentPath :: from_blinded_path_and_payinfo (
3842
3842
intro_node, ln_test_utils:: pubkey ( 42 ) ,
3843
3843
vec ! [
3844
3844
BlindedHop { blinded_node_id: ln_test_utils:: pubkey( 42 as u8 ) , encrypted_payload: Vec :: new( ) } ,
@@ -7871,7 +7871,9 @@ mod tests {
7871
7871
cltv_expiry_delta : 15 ,
7872
7872
features : BlindedHopFeatures :: empty ( ) ,
7873
7873
} ;
7874
- let blinded_path = BlindedPaymentPath :: from_raw ( nodes[ 2 ] , ln_test_utils:: pubkey ( 42 ) , blinded_hops, blinded_payinfo. clone ( ) ) ;
7874
+ let blinded_path = BlindedPaymentPath :: from_blinded_path_and_payinfo (
7875
+ nodes[ 2 ] , ln_test_utils:: pubkey ( 42 ) , blinded_hops, blinded_payinfo. clone ( )
7876
+ ) ;
7875
7877
let payment_params = PaymentParameters :: blinded ( vec ! [ blinded_path. clone( ) , blinded_path. clone( ) ] ) ;
7876
7878
7877
7879
// Make sure we can round-trip read and write blinded payment params.
@@ -7992,7 +7994,9 @@ mod tests {
7992
7994
7993
7995
let mut blinded_payinfo_2 = blinded_payinfo_1;
7994
7996
blinded_payinfo_2. htlc_maximum_msat = 70_000 ;
7995
- let blinded_path_2 = BlindedPaymentPath :: from_raw ( nodes[ 2 ] , ln_test_utils:: pubkey ( 43 ) ,
7997
+ let blinded_path_2 = BlindedPaymentPath :: from_blinded_path_and_payinfo (
7998
+ nodes[ 2 ] ,
7999
+ ln_test_utils:: pubkey ( 43 ) ,
7996
8000
vec ! [
7997
8001
BlindedHop { blinded_node_id: ln_test_utils:: pubkey( 42 as u8 ) , encrypted_payload: Vec :: new( ) } ,
7998
8002
BlindedHop { blinded_node_id: ln_test_utils:: pubkey( 42 as u8 ) , encrypted_payload: Vec :: new( ) }
0 commit comments