File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -859,7 +859,15 @@ mod test {
859
859
match_invoice_routes ( Some ( 5000 ) , & nodes[ 1 ] , scid_aliases. clone ( ) ) ;
860
860
// This also applies even if the amount is more than the payment amount, to ensure users
861
861
// dont screw up their privacy.
862
- match_invoice_routes ( Some ( 50_000_000 ) , & nodes[ 1 ] , scid_aliases) ;
862
+ match_invoice_routes ( Some ( 50_000_000 ) , & nodes[ 1 ] , scid_aliases. clone ( ) ) ;
863
+
864
+ // The same remains true until the channel has 7 confirmations, at which point we include
865
+ // no hints.
866
+ connect_blocks ( & nodes[ 1 ] , 5 ) ;
867
+ match_invoice_routes ( Some ( 5000 ) , & nodes[ 1 ] , scid_aliases. clone ( ) ) ;
868
+ connect_blocks ( & nodes[ 1 ] , 1 ) ;
869
+ get_event_msg ! ( nodes[ 0 ] , MessageSendEvent :: SendAnnouncementSignatures , nodes[ 1 ] . node. get_our_node_id( ) ) ;
870
+ match_invoice_routes ( Some ( 5000 ) , & nodes[ 1 ] , HashSet :: new ( ) ) ;
863
871
}
864
872
865
873
#[ test]
You can’t perform that action at this time.
0 commit comments