@@ -3827,7 +3827,7 @@ mod tests {
38273827 }
38283828
38293829 fn dummy_blinded_path ( intro_node : PublicKey , payinfo : BlindedPayInfo ) -> BlindedPaymentPath {
3830- BlindedPaymentPath :: from_raw (
3830+ BlindedPaymentPath :: from_blinded_path_and_payinfo (
38313831 intro_node, ln_test_utils:: pubkey ( 42 ) ,
38323832 vec ! [
38333833 BlindedHop { blinded_node_id: ln_test_utils:: pubkey( 42 as u8 ) , encrypted_payload: Vec :: new( ) } ,
@@ -3838,7 +3838,7 @@ mod tests {
38383838 }
38393839
38403840 fn dummy_one_hop_blinded_path ( intro_node : PublicKey , payinfo : BlindedPayInfo ) -> BlindedPaymentPath {
3841- BlindedPaymentPath :: from_raw (
3841+ BlindedPaymentPath :: from_blinded_path_and_payinfo (
38423842 intro_node, ln_test_utils:: pubkey ( 42 ) ,
38433843 vec ! [
38443844 BlindedHop { blinded_node_id: ln_test_utils:: pubkey( 42 as u8 ) , encrypted_payload: Vec :: new( ) } ,
@@ -7871,7 +7871,9 @@ mod tests {
78717871 cltv_expiry_delta : 15 ,
78727872 features : BlindedHopFeatures :: empty ( ) ,
78737873 } ;
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+ ) ;
78757877 let payment_params = PaymentParameters :: blinded ( vec ! [ blinded_path. clone( ) , blinded_path. clone( ) ] ) ;
78767878
78777879 // Make sure we can round-trip read and write blinded payment params.
@@ -7992,7 +7994,9 @@ mod tests {
79927994
79937995 let mut blinded_payinfo_2 = blinded_payinfo_1;
79947996 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 ) ,
79968000 vec ! [
79978001 BlindedHop { blinded_node_id: ln_test_utils:: pubkey( 42 as u8 ) , encrypted_payload: Vec :: new( ) } ,
79988002 BlindedHop { blinded_node_id: ln_test_utils:: pubkey( 42 as u8 ) , encrypted_payload: Vec :: new( ) }
0 commit comments