We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8b58c5b commit 3181bb6Copy full SHA for 3181bb6
common/route.c
@@ -94,6 +94,7 @@ static bool dijkstra_to_hops(struct route_hop **hops,
94
/* OK, populate other fields. */
95
c = dijkstra_best_chan(dij, curidx);
96
97
+ assert(c->half[0].nodeidx == curidx || c->half[1].nodeidx == curidx);
98
(*hops)[num_hops].direction = c->half[0].nodeidx == curidx ? 0 : 1;
99
(*hops)[num_hops].scid = gossmap_chan_scid(gossmap, c);
100
0 commit comments