funding+utxonursery+breacharbiter: use new FeeEstimator API

This commit is contained in:
Olaoluwa Osuntokun
2017-11-23 13:38:08 -06:00
parent ad364ae9a1
commit a3cd248404
4 changed files with 32 additions and 20 deletions

View File

@ -85,7 +85,12 @@ 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.
updateStream, errChan := c.server.OpenChannel(-1, target, amt, 0)
feePerWeight, err := c.server.cc.feeEstimator.EstimateFeePerWeight(3)
if err != nil {
return err
}
updateStream, errChan := c.server.OpenChannel(-1, target, amt, 0,
feePerWeight)
select {
case err := <-errChan: