lnwallet: type htlcWeight and commitWeight as int64's
This commit is contained in:
parent
5240953de0
commit
812ebe6fe6
@ -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
|
||||
|
@ -39,8 +39,8 @@ const (
|
||||
// rotations, etc.
|
||||
identityKeyIndex = hdkeychain.HardenedKeyStart + 2
|
||||
|
||||
commitWeight = btcutil.Amount(724)
|
||||
htlcWeight = 172
|
||||
commitWeight int64 = 724
|
||||
htlcWeight int64 = 172
|
||||
)
|
||||
|
||||
var (
|
||||
|
Loading…
Reference in New Issue
Block a user