@@ -585,7 +585,7 @@ fn creates_and_pays_for_offer_using_two_hop_blinded_path() {
585585 assert_ne ! ( invoice. signing_pubkey( ) , alice_id) ;
586586 assert ! ( !invoice. payment_paths( ) . is_empty( ) ) ;
587587 for ( _, path) in invoice. payment_paths ( ) {
588- assert_eq ! ( path. 0 . introduction_node, IntroductionNode :: NodeId ( bob_id) ) ;
588+ assert_eq ! ( path. introduction_node( ) , & IntroductionNode :: NodeId ( bob_id) ) ;
589589 }
590590
591591 route_bolt12_payment ( david, & [ charlie, bob, alice] , & invoice) ;
@@ -666,7 +666,7 @@ fn creates_and_pays_for_refund_using_two_hop_blinded_path() {
666666 assert_ne ! ( invoice. signing_pubkey( ) , alice_id) ;
667667 assert ! ( !invoice. payment_paths( ) . is_empty( ) ) ;
668668 for ( _, path) in invoice. payment_paths ( ) {
669- assert_eq ! ( path. 0 . introduction_node, IntroductionNode :: NodeId ( bob_id) ) ;
669+ assert_eq ! ( path. introduction_node( ) , & IntroductionNode :: NodeId ( bob_id) ) ;
670670 }
671671
672672 route_bolt12_payment ( david, & [ charlie, bob, alice] , & invoice) ;
@@ -731,7 +731,7 @@ fn creates_and_pays_for_offer_using_one_hop_blinded_path() {
731731 assert_ne ! ( invoice. signing_pubkey( ) , alice_id) ;
732732 assert ! ( !invoice. payment_paths( ) . is_empty( ) ) ;
733733 for ( _, path) in invoice. payment_paths ( ) {
734- assert_eq ! ( path. 0 . introduction_node, IntroductionNode :: NodeId ( alice_id) ) ;
734+ assert_eq ! ( path. introduction_node( ) , & IntroductionNode :: NodeId ( alice_id) ) ;
735735 }
736736
737737 route_bolt12_payment ( bob, & [ alice] , & invoice) ;
@@ -786,7 +786,7 @@ fn creates_and_pays_for_refund_using_one_hop_blinded_path() {
786786 assert_ne ! ( invoice. signing_pubkey( ) , alice_id) ;
787787 assert ! ( !invoice. payment_paths( ) . is_empty( ) ) ;
788788 for ( _, path) in invoice. payment_paths ( ) {
789- assert_eq ! ( path. 0 . introduction_node, IntroductionNode :: NodeId ( alice_id) ) ;
789+ assert_eq ! ( path. introduction_node( ) , & IntroductionNode :: NodeId ( alice_id) ) ;
790790 }
791791
792792 route_bolt12_payment ( bob, & [ alice] , & invoice) ;
@@ -1110,7 +1110,7 @@ fn pays_bolt12_invoice_asynchronously() {
11101110 assert_ne ! ( invoice. signing_pubkey( ) , alice_id) ;
11111111 assert ! ( !invoice. payment_paths( ) . is_empty( ) ) ;
11121112 for ( _, path) in invoice. payment_paths ( ) {
1113- assert_eq ! ( path. 0 . introduction_node, IntroductionNode :: NodeId ( alice_id) ) ;
1113+ assert_eq ! ( path. introduction_node( ) , & IntroductionNode :: NodeId ( alice_id) ) ;
11141114 }
11151115
11161116 assert ! ( bob. node. send_payment_for_bolt12_invoice( & invoice, context. as_ref( ) ) . is_ok( ) ) ;
@@ -1194,7 +1194,7 @@ fn creates_offer_with_blinded_path_using_unannounced_introduction_node() {
11941194 assert_ne ! ( invoice. signing_pubkey( ) , alice_id) ;
11951195 assert ! ( !invoice. payment_paths( ) . is_empty( ) ) ;
11961196 for ( _, path) in invoice. payment_paths ( ) {
1197- assert_eq ! ( path. 0 . introduction_node, IntroductionNode :: NodeId ( bob_id) ) ;
1197+ assert_eq ! ( path. introduction_node( ) , & IntroductionNode :: NodeId ( bob_id) ) ;
11981198 }
11991199
12001200 route_bolt12_payment ( bob, & [ alice] , & invoice) ;
@@ -1244,7 +1244,7 @@ fn creates_refund_with_blinded_path_using_unannounced_introduction_node() {
12441244 assert_ne ! ( invoice. signing_pubkey( ) , alice_id) ;
12451245 assert ! ( !invoice. payment_paths( ) . is_empty( ) ) ;
12461246 for ( _, path) in invoice. payment_paths ( ) {
1247- assert_eq ! ( path. 0 . introduction_node, IntroductionNode :: NodeId ( bob_id) ) ;
1247+ assert_eq ! ( path. introduction_node( ) , & IntroductionNode :: NodeId ( bob_id) ) ;
12481248 }
12491249}
12501250
0 commit comments