diff --git a/lnwallet/reservation.go b/lnwallet/reservation.go index 8aef594ce..31eb58dbb 100644 --- a/lnwallet/reservation.go +++ b/lnwallet/reservation.go @@ -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 diff --git a/lnwallet/wallet.go b/lnwallet/wallet.go index 6f785498a..fb61d8d33 100644 --- a/lnwallet/wallet.go +++ b/lnwallet/wallet.go @@ -39,8 +39,8 @@ const ( // rotations, etc. identityKeyIndex = hdkeychain.HardenedKeyStart + 2 - commitWeight = btcutil.Amount(724) - htlcWeight = 172 + commitWeight int64 = 724 + htlcWeight int64 = 172 ) var (