lnd test: ensure static fee is not rounded down

This commit is contained in:
Johan T. Halseth 2018-02-21 13:03:30 +01:00
parent 004563b20b
commit f42c16b612
No known key found for this signature in database
GPG Key ID: 15BAADA29DA20D26

@ -366,7 +366,7 @@ func calcStaticFee(numHTLCs int) btcutil.Amount {
const (
commitWeight = btcutil.Amount(724)
htlcWeight = 172
feePerKw = btcutil.Amount(50/4) * 1000
feePerKw = btcutil.Amount(50 * 1000 / 4)
)
return feePerKw * (commitWeight +
btcutil.Amount(htlcWeight*numHTLCs)) / 1000