@@ -427,6 +427,7 @@ impl RoutingMessageHandler for Router {
427
427
} ,
428
428
None => { } ,
429
429
}
430
+ log_trace ! ( self , "Announced node {}" , msg. contents. node_id) ;
430
431
431
432
node. features = msg. contents . features . clone ( ) ;
432
433
node. last_update = Some ( msg. contents . timestamp ) ;
@@ -555,6 +556,7 @@ impl RoutingMessageHandler for Router {
555
556
}
556
557
} ;
557
558
}
559
+ log_trace ! ( self , "Announced channel {} between {} and {}" , msg. contents. short_channel_id, msg. contents. node_id_1, msg. contents. node_id_2) ;
558
560
559
561
add_channel_to_node ! ( msg. contents. node_id_1) ;
560
562
add_channel_to_node ! ( msg. contents. node_id_2) ;
@@ -868,6 +870,7 @@ impl Router {
868
870
if let Some ( hops) = first_hops {
869
871
for chan in hops {
870
872
let short_channel_id = chan. short_channel_id . expect ( "first_hops should be filled in with usable channels, not pending ones" ) ;
873
+ log_trace ! ( self , "First hop link {} to {}" , chan. short_channel_id. unwrap( ) , chan. remote_network_id) ;
871
874
if chan. remote_network_id == * target {
872
875
return Ok ( Route {
873
876
hops : vec ! [ RouteHop {
@@ -955,8 +958,11 @@ impl Router {
955
958
}
956
959
}
957
960
961
+ log_trace!( self , "Node {} requires {}" , $node_id, $node. features. requires_unknown_bits( ) ) ;
958
962
if !$node. features. requires_unknown_bits( ) {
963
+ log_trace!( self , "Node {} with {} links" , $node_id, $node. channels. len( ) ) ;
959
964
for chan_id in $node. channels. iter( ) {
965
+ log_trace!( self , "Adding link {}" , chan_id) ;
960
966
let chan = network. channels. get( chan_id) . unwrap( ) ;
961
967
if !chan. features. requires_unknown_bits( ) {
962
968
if chan. one_to_two. src_node_id == * $node_id {
@@ -979,6 +985,7 @@ impl Router {
979
985
} ;
980
986
}
981
987
988
+ log_trace ! ( self , "Tracing route to {}..." , target) ;
982
989
match network. nodes . get ( target) {
983
990
None => { } ,
984
991
Some ( node) => {
@@ -1006,6 +1013,7 @@ impl Router {
1006
1013
}
1007
1014
1008
1015
while let Some ( RouteGraphNode { pubkey, lowest_fee_to_node, .. } ) = targets. pop ( ) {
1016
+ log_trace ! ( self , "Finding link for destination {}" , pubkey) ;
1009
1017
if pubkey == network. our_node_id {
1010
1018
let mut res = vec ! ( dist. remove( & network. our_node_id) . unwrap( ) . 3 ) ;
1011
1019
loop {
0 commit comments