multi: update to latest fee estimation interface

This commit is contained in:
Wilmer Paulino
2018-07-27 18:20:58 -07:00
parent a63677a381
commit 9d2eeb6304
21 changed files with 150 additions and 204 deletions

View File

@ -80,7 +80,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.
feePerVSize, err := c.server.cc.feeEstimator.EstimateFeePerVSize(3)
feePerKw, err := c.server.cc.feeEstimator.EstimateFeePerKW(3)
if err != nil {
return err
}
@ -88,8 +88,9 @@ func (c *chanController) OpenChannel(target *btcec.PublicKey,
// TODO(halseth): make configurable?
minHtlc := lnwire.NewMSatFromSatoshis(1)
updateStream, errChan := c.server.OpenChannel(target, amt, 0,
minHtlc, feePerVSize, false, 0)
updateStream, errChan := c.server.OpenChannel(
target, amt, 0, minHtlc, feePerKw, false, 0,
)
select {
case err := <-errChan: