Skip to content

Commit

Permalink
fixup! fixup! route: Add the total capacity to route_hops
Browse files Browse the repository at this point in the history
  • Loading branch information
cdecker committed Aug 7, 2024
1 parent 33fce95 commit c676551
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions plugins/libplugin-pay.c
Original file line number Diff line number Diff line change
Expand Up @@ -3453,6 +3453,7 @@ static void direct_pay_override(struct payment *p) {
p->route[0].scid = hint->scid.scid;
p->route[0].direction = hint->scid.dir;
p->route[0].node_id = *p->route_destination;
p->route[0].total_amount = hint->overall_capacity;
paymod_log(p, LOG_DBG,
"Found a direct channel (%s) with sufficient "
"capacity, skipping route computation.",
Expand Down

0 comments on commit c676551

Please sign in to comment.