@@ -30,7 +30,7 @@ use ldk_node::payment::{
3030 ConfirmationStatus , PaymentDetails , PaymentDirection , PaymentKind , PaymentStatus ,
3131 UnifiedPaymentResult ,
3232} ;
33- use ldk_node:: { Builder , DynStore , Event , NodeError } ;
33+ use ldk_node:: { dnssec_testing_utils , Builder , DynStore , Event , NodeError } ;
3434use lightning:: ln:: channelmanager:: PaymentId ;
3535use lightning:: routing:: gossip:: { NodeAlias , NodeId } ;
3636use lightning:: routing:: router:: RouteParametersConfig ;
@@ -1554,13 +1554,15 @@ async fn unified_send_to_hrn() {
15541554 std:: thread:: sleep ( std:: time:: Duration :: from_millis ( 10 ) ) ;
15551555 }
15561556
1557- //let offer = node_b.bolt12_payment().receive(1000000, "test offer", None, None).unwrap();
1558- //println!("offer! {:?}", offer.to_string());
1557+ let test_offer = node_b. bolt12_payment ( ) . receive ( 1000000 , "test offer" , None , None ) . unwrap ( ) ;
15591558
15601559 // Sleep one more sec to make sure the node announcement propagates.
15611560 std:: thread:: sleep ( std:: time:: Duration :: from_secs ( 1 ) ) ;
15621561
156315621563+
1564+ dnssec_testing_utils:: set_testing_dnssec_proof_offer_resolution_override ( hrn, test_offer) ;
1565+
15641566 let offer_payment_id: PaymentId = match node_a. unified_payment ( ) . send ( & hrn, None ) . await {
15651567 Ok ( UnifiedPaymentResult :: Bolt12 { payment_id } ) => {
15661568 println ! ( "\n Bolt12 payment sent successfully with PaymentID: {:?}" , payment_id) ;
0 commit comments