lnwallet: type htlcWeight and commitWeight as int64's

This commit is contained in:
Olaoluwa Osuntokun committed 2017-07-31 21:02:30 -07:00
1 parent 5240953de0
commit 812ebe6fe6
2 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -143,7 +143,7 @@ func NewChannelReservation(capacity, fundingAmt, feePerKw btcutil.Amount,
initiator bool
)
commitFee := (feePerKw * commitWeight) / 1000
commitFee := btcutil.Amount((int64(feePerKw) * commitWeight) / 1000)
// If we're the responder to a single-funder reservation, then we have
// no initial balance in the channel unless the remote party is pushing