lnwallet: calcStaticFee now directly uses feePerKw
This commit is contained in:
parent
52942e4f13
commit
222385bf73
@ -337,9 +337,9 @@ func calcStaticFee(numHTLCs int) btcutil.Amount {
|
||||
const (
|
||||
commitWeight = btcutil.Amount(724)
|
||||
htlcWeight = 172
|
||||
feePerByte = btcutil.Amount(50 * 4)
|
||||
feePerKw = btcutil.Amount(24/4) * 1000
|
||||
)
|
||||
return feePerByte * (commitWeight +
|
||||
return feePerKw * (commitWeight +
|
||||
btcutil.Amount(htlcWeight*numHTLCs)) / 1000
|
||||
}
|
||||
|
||||
|
@ -109,9 +109,9 @@ func calcStaticFee(numHTLCs int) btcutil.Amount {
|
||||
const (
|
||||
commitWeight = btcutil.Amount(724)
|
||||
htlcWeight = 172
|
||||
feePerByte = btcutil.Amount(250 * 4)
|
||||
feePerKw = btcutil.Amount(250/4) * 1000
|
||||
)
|
||||
return feePerByte * (commitWeight +
|
||||
return feePerKw * (commitWeight +
|
||||
btcutil.Amount(htlcWeight*numHTLCs)) / 1000
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user