@@ -3825,7 +3825,7 @@ mod tests {
3825
3825
}
3826
3826
3827
3827
fn dummy_blinded_path ( intro_node : PublicKey , payinfo : BlindedPayInfo ) -> BlindedPaymentPath {
3828
- BlindedPaymentPath :: from_raw (
3828
+ BlindedPaymentPath :: from_blinded_path_and_payinfo (
3829
3829
intro_node, ln_test_utils:: pubkey ( 42 ) ,
3830
3830
vec ! [
3831
3831
BlindedHop { blinded_node_id: ln_test_utils:: pubkey( 42 as u8 ) , encrypted_payload: Vec :: new( ) } ,
@@ -3836,7 +3836,7 @@ mod tests {
3836
3836
}
3837
3837
3838
3838
fn dummy_one_hop_blinded_path ( intro_node : PublicKey , payinfo : BlindedPayInfo ) -> BlindedPaymentPath {
3839
- BlindedPaymentPath :: from_raw (
3839
+ BlindedPaymentPath :: from_blinded_path_and_payinfo (
3840
3840
intro_node, ln_test_utils:: pubkey ( 42 ) ,
3841
3841
vec ! [
3842
3842
BlindedHop { blinded_node_id: ln_test_utils:: pubkey( 42 as u8 ) , encrypted_payload: Vec :: new( ) } ,
@@ -7869,7 +7869,9 @@ mod tests {
7869
7869
cltv_expiry_delta : 15 ,
7870
7870
features : BlindedHopFeatures :: empty ( ) ,
7871
7871
} ;
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
+ ) ;
7873
7875
let payment_params = PaymentParameters :: blinded ( vec ! [ blinded_path. clone( ) , blinded_path. clone( ) ] ) ;
7874
7876
7875
7877
// Make sure we can round-trip read and write blinded payment params.
@@ -7990,7 +7992,9 @@ mod tests {
7990
7992
7991
7993
let mut blinded_payinfo_2 = blinded_payinfo_1;
7992
7994
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 ) ,
7994
7998
vec ! [
7995
7999
BlindedHop { blinded_node_id: ln_test_utils:: pubkey( 42 as u8 ) , encrypted_payload: Vec :: new( ) } ,
7996
8000
BlindedHop { blinded_node_id: ln_test_utils:: pubkey( 42 as u8 ) , encrypted_payload: Vec :: new( ) }
0 commit comments