autopilot: extract default fee estimate target conf into constant

This commit is contained in:
Johan T. Halseth committed 2019-06-08 17:22:34 +02:00
1 parent 52b7603d25
commit 9a7f24d2d3
2 files changed
+8 -1

No files matched your search

+3 -1
View File
@@ -84,7 +84,9 @@ 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.
feePerKw, err := c.server.cc.feeEstimator.EstimateFeePerKW(3)
feePerKw, err := c.server.cc.feeEstimator.EstimateFeePerKW(
autopilot.DefaultConfTarget,
)
if err != nil {
return err
}