From b9d1eceda3960cea88a3a9d2079b985d45f1292b Mon Sep 17 00:00:00 2001 From: "Johan T. Halseth" Date: Tue, 13 Feb 2018 15:07:20 +0100 Subject: [PATCH] peer: use EstimateFeePerVSize --- peer.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/peer.go b/peer.go index 2a5de8bd..a2f92738 100644 --- a/peer.go +++ b/peer.go @@ -1415,7 +1415,7 @@ func (p *peer) fetchActiveChanCloser(chanID lnwire.ChannelID) (*channelCloser, e // In order to begin fee negotiations, we'll first compute our // target ideal fee-per-kw. We'll set this to a lax value, as // we weren't the ones that initiated the channel closure. - satPerWight, err := p.server.cc.feeEstimator.EstimateFeePerWeight(6) + feePerVSize, err := p.server.cc.feeEstimator.EstimateFeePerVSize(6) if err != nil { return nil, fmt.Errorf("unable to query fee "+ "estimator: %v", err) @@ -1424,7 +1424,7 @@ func (p *peer) fetchActiveChanCloser(chanID lnwire.ChannelID) (*channelCloser, e // We'll then convert the sat per weight to sat per k/w as this // is the native unit used within the protocol when dealing // with fees. - targetFeePerKw := satPerWight * 1000 + targetFeePerKw := feePerVSize.FeePerKWeight() _, startingHeight, err := p.server.cc.chainIO.GetBestBlock() if err != nil {