lnd test: ensure static fee is not rounded down
This commit is contained in:
parent
004563b20b
commit
f42c16b612
@ -366,7 +366,7 @@ func calcStaticFee(numHTLCs int) btcutil.Amount {
|
|||||||
const (
|
const (
|
||||||
commitWeight = btcutil.Amount(724)
|
commitWeight = btcutil.Amount(724)
|
||||||
htlcWeight = 172
|
htlcWeight = 172
|
||||||
feePerKw = btcutil.Amount(50/4) * 1000
|
feePerKw = btcutil.Amount(50 * 1000 / 4)
|
||||||
)
|
)
|
||||||
return feePerKw * (commitWeight +
|
return feePerKw * (commitWeight +
|
||||||
btcutil.Amount(htlcWeight*numHTLCs)) / 1000
|
btcutil.Amount(htlcWeight*numHTLCs)) / 1000
|
||||||
|
Loading…
Reference in New Issue
Block a user