From 6627da5eb55ff4592c694d51a2644c357d1b677f Mon Sep 17 00:00:00 2001 From: Christian Decker Date: Mon, 6 Aug 2018 19:19:41 +0200 Subject: [PATCH] routing: Do not consider risk when capping transfers Reported-by: Rusty Russell <@rustyrussell> Signed-off-by: Christian Decker <@cdecker> --- gossipd/routing.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gossipd/routing.c b/gossipd/routing.c index 18b09c3cd..70455b92c 100644 --- a/gossipd/routing.c +++ b/gossipd/routing.c @@ -408,7 +408,7 @@ static void bfg_one_edge(struct node *node, /* Skip a channels if it indicated that it won't route * the requeuested amount. */ continue; - } else if (requiredcap + risk >= MAX_MSATOSHI) { + } else if (requiredcap >= MAX_MSATOSHI) { SUPERVERBOSE("...extreme %"PRIu64 " + fee %"PRIu64 " + risk %"PRIu64" ignored",