lnwallet: type htlcWeight and commitWeight as int64's

This commit is contained in:
Olaoluwa Osuntokun 2017-07-31 21:02:22 -07:00
parent 5240953de0
commit 812ebe6fe6
No known key found for this signature in database
GPG Key ID: 9CC5B105D03521A2
2 changed files with 3 additions and 3 deletions

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

View File

@ -39,8 +39,8 @@ const (
// rotations, etc.
identityKeyIndex = hdkeychain.HardenedKeyStart + 2
commitWeight = btcutil.Amount(724)
htlcWeight = 172
commitWeight int64 = 724
htlcWeight int64 = 172
)
var (