From e48d51db92fa3c08212f5058cdfc833a0aff512f Mon Sep 17 00:00:00 2001 From: "Johan T. Halseth" Date: Tue, 13 Feb 2018 15:06:03 +0100 Subject: [PATCH] pilot: express fee rates using types, use EstimateFeePerVSize --- pilot.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pilot.go b/pilot.go index 220caf97..c82b0f17 100644 --- a/pilot.go +++ b/pilot.go @@ -85,7 +85,7 @@ func (c *chanController) OpenChannel(target *btcec.PublicKey, // With the connection established, we'll now establish our connection // to the target peer, waiting for the first update before we exit. - feePerWeight, err := c.server.cc.feeEstimator.EstimateFeePerWeight(3) + feePerVSize, err := c.server.cc.feeEstimator.EstimateFeePerVSize(3) if err != nil { return err } @@ -94,7 +94,7 @@ func (c *chanController) OpenChannel(target *btcec.PublicKey, minHtlc := lnwire.NewMSatFromSatoshis(1) updateStream, errChan := c.server.OpenChannel(target, amt, 0, - minHtlc, feePerWeight, false) + minHtlc, feePerVSize, false) select { case err := <-errChan: