@@ -3825,7 +3825,7 @@ mod tests {
38253825 }
38263826
38273827 fn dummy_blinded_path ( intro_node : PublicKey , payinfo : BlindedPayInfo ) -> BlindedPaymentPath {
3828- BlindedPaymentPath :: from_raw (
3828+ BlindedPaymentPath :: from_blinded_path_and_payinfo (
38293829 intro_node, ln_test_utils:: pubkey ( 42 ) ,
38303830 vec ! [
38313831 BlindedHop { blinded_node_id: ln_test_utils:: pubkey( 42 as u8 ) , encrypted_payload: Vec :: new( ) } ,
@@ -3836,7 +3836,7 @@ mod tests {
38363836 }
38373837
38383838 fn dummy_one_hop_blinded_path ( intro_node : PublicKey , payinfo : BlindedPayInfo ) -> BlindedPaymentPath {
3839- BlindedPaymentPath :: from_raw (
3839+ BlindedPaymentPath :: from_blinded_path_and_payinfo (
38403840 intro_node, ln_test_utils:: pubkey ( 42 ) ,
38413841 vec ! [
38423842 BlindedHop { blinded_node_id: ln_test_utils:: pubkey( 42 as u8 ) , encrypted_payload: Vec :: new( ) } ,
@@ -7869,7 +7869,9 @@ mod tests {
78697869 cltv_expiry_delta : 15 ,
78707870 features : BlindedHopFeatures :: empty ( ) ,
78717871 } ;
7872- let blinded_path = BlindedPaymentPath :: from_raw ( nodes[ 2 ] , ln_test_utils:: pubkey ( 42 ) , blinded_hops, blinded_payinfo. clone ( ) ) ;
7872+ let blinded_path = BlindedPaymentPath :: from_blinded_path_and_payinfo (
7873+ nodes[ 2 ] , ln_test_utils:: pubkey ( 42 ) , blinded_hops, blinded_payinfo. clone ( )
7874+ ) ;
78737875 let payment_params = PaymentParameters :: blinded ( vec ! [ blinded_path. clone( ) , blinded_path. clone( ) ] ) ;
78747876
78757877 // Make sure we can round-trip read and write blinded payment params.
@@ -7990,7 +7992,9 @@ mod tests {
79907992
79917993 let mut blinded_payinfo_2 = blinded_payinfo_1;
79927994 blinded_payinfo_2. htlc_maximum_msat = 70_000 ;
7993- let blinded_path_2 = BlindedPaymentPath :: from_raw ( nodes[ 2 ] , ln_test_utils:: pubkey ( 43 ) ,
7995+ let blinded_path_2 = BlindedPaymentPath :: from_blinded_path_and_payinfo (
7996+ nodes[ 2 ] ,
7997+ ln_test_utils:: pubkey ( 43 ) ,
79947998 vec ! [
79957999 BlindedHop { blinded_node_id: ln_test_utils:: pubkey( 42 as u8 ) , encrypted_payload: Vec :: new( ) } ,
79968000 BlindedHop { blinded_node_id: ln_test_utils:: pubkey( 42 as u8 ) , encrypted_payload: Vec :: new( ) }
0 commit comments