lnwire: the FeePerKw is a uint32, not a btcutil.Amount
This commit is contained in:
parent
87840f215b
commit
d0a356c948
@ -1,10 +1,6 @@
|
|||||||
package lnwire
|
package lnwire
|
||||||
|
|
||||||
import (
|
import "io"
|
||||||
"io"
|
|
||||||
|
|
||||||
"github.com/roasbeef/btcutil"
|
|
||||||
)
|
|
||||||
|
|
||||||
// UpdateFee is the message the channel initiator sends to the other peer if
|
// UpdateFee is the message the channel initiator sends to the other peer if
|
||||||
// the channel commitment fee needs to be updated.
|
// 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
|
// FeePerKw is the fee-per-kw on commit transactions that the sender of
|
||||||
// this message wants to use for this channel.
|
// this message wants to use for this channel.
|
||||||
FeePerKw btcutil.Amount
|
FeePerKw uint32
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewUpdateFee creates a new UpdateFee message.
|
// NewUpdateFee creates a new UpdateFee message.
|
||||||
func NewUpdateFee(chanID ChannelID, feePerKw btcutil.Amount) *UpdateFee {
|
func NewUpdateFee(chanID ChannelID, feePerKw uint32) *UpdateFee {
|
||||||
return &UpdateFee{
|
return &UpdateFee{
|
||||||
ChanID: chanID,
|
ChanID: chanID,
|
||||||
FeePerKw: feePerKw,
|
FeePerKw: feePerKw,
|
||||||
@ -64,6 +60,6 @@ func (c *UpdateFee) MsgType() MessageType {
|
|||||||
//
|
//
|
||||||
// This is part of the lnwire.Message interface.
|
// This is part of the lnwire.Message interface.
|
||||||
func (c *UpdateFee) MaxPayloadLength(uint32) uint32 {
|
func (c *UpdateFee) MaxPayloadLength(uint32) uint32 {
|
||||||
// 32 + 8
|
// 32 + 4
|
||||||
return 40
|
return 36
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user