htlcswitch: update UpdateFee usage due to recent API change

This commit is contained in:
Olaoluwa Osuntokun 2017-11-30 22:17:48 -08:00
parent b8bed9a677
commit 260ff8831a
No known key found for this signature in database
GPG Key ID: 964EA263DD637C21

@ -960,7 +960,7 @@ func (l *channelLink) handleUpstreamMsg(msg lnwire.Message) {
case *lnwire.UpdateFee:
// We received fee update from peer. If we are the initiator we
// will fail the channel, if not we will apply the update.
fee := msg.FeePerKw
fee := btcutil.Amount(msg.FeePerKw)
if err := l.channel.ReceiveUpdateFee(fee); err != nil {
l.fail("error receiving fee update: %v", err)
return
@ -1132,7 +1132,7 @@ func (l *channelLink) updateChannelFee(feePerKw btcutil.Amount) error {
// We'll then attempt to send a new UpdateFee message, and also lock it
// in immediately by triggering a commitment update.
msg := lnwire.NewUpdateFee(l.ChanID(), feePerKw)
msg := lnwire.NewUpdateFee(l.ChanID(), uint32(feePerKw))
if err := l.cfg.Peer.SendMessage(msg); err != nil {
return err
}