mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-03-15 20:09:18 +01:00
fixed source (using raw millisatohis)
This commit is contained in:
parent
997d5aa970
commit
59935c535c
1 changed files with 2 additions and 6 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Reference in a new issue