lnwallet: export HtlcWeight and CommitWeight publicly

This commit is contained in:
Olaoluwa Osuntokun committed 2017-11-10 19:50:51 -08:00
1 parent b1a6b877ce
commit 145cd0b2b6
4 files changed
+11 -5

No files matched your search

+1 -1
View File
@@ -144,7 +144,7 @@ func NewChannelReservation(capacity, fundingAmt, feePerKw btcutil.Amount,
initiator bool
)
commitFee := btcutil.Amount((int64(feePerKw) * commitWeight) / 1000)
commitFee := btcutil.Amount((int64(feePerKw) * CommitWeight) / 1000)
fundingMSat := lnwire.NewMSatFromSatoshis(fundingAmt)
capacityMSat := lnwire.NewMSatFromSatoshis(capacity)