Browse Source

routing: Do not consider risk when capping transfers

Reported-by: Rusty Russell <@rustyrussell>
Signed-off-by: Christian Decker <@cdecker>
ppa-0.6.1
Christian Decker 6 years ago
parent
commit
6627da5eb5
  1. 2
      gossipd/routing.c

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

Loading…
Cancel
Save