common/dijkstra: hand channel direction to path_score callback.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2021-09-23 22:36:09 +09:30
committed by Christian Decker
parent e733fdf62e
commit 0b3c79b3c2
5 changed files with 8 additions and 1 deletions

View File

@@ -48,6 +48,7 @@ struct exclude_entry {
static u64 route_score_fuzz(u32 distance,
struct amount_msat cost,
struct amount_msat risk,
int dir UNUSED,
const struct gossmap_chan *c)
{
u64 costs = cost.millisatoshis + risk.millisatoshis; /* Raw: score */