funding+utxonursery+breacharbiter: use new FeeEstimator API

This commit is contained in:
Olaoluwa Osuntokun committed 2017-11-23 23:10:13 -06:00
1 parent ad364ae9a1
commit a3cd248404
4 files changed
+32 -20

No files matched your search

+6 -1
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: