routing: Do not consider risk when capping transfers

Reported-by: Rusty Russell <@rustyrussell>
Signed-off-by: Christian Decker <@cdecker>
This commit is contained in:
Christian Decker
2018-08-06 19:19:41 +02:00
parent 84905eac2b
commit 6627da5eb5

View File

@@ -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",