From d0a356c948ee56bd6eacf331a6e6943b7d9ab6bd Mon Sep 17 00:00:00 2001 From: Olaoluwa Osuntokun Date: Thu, 30 Nov 2017 22:07:42 -0800 Subject: [PATCH] lnwire: the FeePerKw is a uint32, not a btcutil.Amount --- lnwire/update_fee.go | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/lnwire/update_fee.go b/lnwire/update_fee.go index 626a3fa1..9937c3ab 100644 --- a/lnwire/update_fee.go +++ b/lnwire/update_fee.go @@ -1,10 +1,6 @@ package lnwire -import ( - "io" - - "github.com/roasbeef/btcutil" -) +import "io" // UpdateFee is the message the channel initiator sends to the other peer if // the channel commitment fee needs to be updated. @@ -14,11 +10,11 @@ type UpdateFee struct { // FeePerKw is the fee-per-kw on commit transactions that the sender of // this message wants to use for this channel. - FeePerKw btcutil.Amount + FeePerKw uint32 } // NewUpdateFee creates a new UpdateFee message. -func NewUpdateFee(chanID ChannelID, feePerKw btcutil.Amount) *UpdateFee { +func NewUpdateFee(chanID ChannelID, feePerKw uint32) *UpdateFee { return &UpdateFee{ ChanID: chanID, FeePerKw: feePerKw, @@ -64,6 +60,6 @@ func (c *UpdateFee) MsgType() MessageType { // // This is part of the lnwire.Message interface. func (c *UpdateFee) MaxPayloadLength(uint32) uint32 { - // 32 + 8 - return 40 + // 32 + 4 + return 36 }