Skip to content

Commit

Permalink
fixed source (using raw millisatohis)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lagrang3 committed Jan 29, 2024
1 parent 74a3bd7 commit 0807bff
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions plugins/renepay/mcf.c
Original file line number Diff line number Diff line change
Expand Up @@ -1355,12 +1355,8 @@ get_flow_paths(const tal_t *ctx, const struct gossmap *gossmap,
inf_htlc_max, channel_htlc_max(c, dir));
}

s64 htlc_max = inf_htlc_max.millisatoshis /
1000; /* Raw: need htlc_max in sats to do
arithmetic operations. */
s64 htlc_min = (sup_htlc_min.millisatoshis + 999) /
1000; /* Raw: need htlc_min in sats to do
arithmetic operations. */
s64 htlc_max=inf_htlc_max.millisatoshis/1000;/* Raw: need htlc_max in sats to do arithmetic operations.*/
s64 htlc_min=(sup_htlc_min.millisatoshis+999)/1000;/* Raw: need htlc_min in sats to do arithmetic operations.*/

if (htlc_min > htlc_max) {
/* htlc_min is too big or htlc_max is too small,
Expand Down

0 comments on commit 0807bff

Please sign in to comment.