mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 07:04:22 +01:00
routing: Do not consider risk when capping transfers
Reported-by: Rusty Russell <@rustyrussell> Signed-off-by: Christian Decker <@cdecker>
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user