lnd test: ensure static fee is not rounded down

This commit is contained in:
Johan T. Halseth committed 2018-02-26 22:42:27 +01:00
1 parent 004563b20b
commit f42c16b612
1 file changed
+1 -1
+1 -1
View File
@@ -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