1
0
Fork 0
mirror of https://github.com/ACINQ/eclair.git synced 2025-02-22 14:22:39 +01:00

in fee-per-kw, kilo is 1000 not 1024

see 18a083b628
This commit is contained in:
sstone 2017-01-25 11:19:41 +01:00
parent 08f1c893ff
commit 96e0d8f88b

View file

@ -69,7 +69,7 @@ object Transactions {
val claimHtlcDelayedWeight = 482
val mainPunishmentWeight = 483
def weight2fee(feeRatePerKw: Long, weight: Int) = Satoshi((feeRatePerKw * weight) / 1024)
def weight2fee(feeRatePerKw: Long, weight: Int) = Satoshi((feeRatePerKw * weight) / 1000)
def commitTxFee(feeRatePerKw: Long, dustLimit: Satoshi, spec: CommitmentSpec): Satoshi = {