mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-03-03 10:46:58 +01:00
correct tx_fee in 32bit system
This commit is contained in:
parent
938addfba8
commit
b17b05b8ae
1 changed files with 1 additions and 1 deletions
|
@ -410,7 +410,7 @@ struct amount_sat amount_tx_fee(u32 fee_per_kw, size_t weight)
|
|||
|
||||
/* If this overflows, weight must be > 2^32, which is not a real tx */
|
||||
assert(!mul_overflows_u64(fee_per_kw, weight));
|
||||
fee.satoshis = fee_per_kw * weight / 1000;
|
||||
fee.satoshis = (u64)fee_per_kw * weight / 1000;
|
||||
|
||||
return fee;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue