pilot: express fee rates using types, use EstimateFeePerVSize

This commit is contained in:
Johan T. Halseth 2018-02-13 15:06:03 +01:00
parent 3dc9e3c7d4
commit e48d51db92
No known key found for this signature in database
GPG Key ID: 15BAADA29DA20D26

View File

@ -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: