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

+5
View File
@@ -9,6 +9,11 @@ import (
"github.com/lightningnetwork/lnd/lnwire"
)
// DefaultConfTarget is the default confirmation target for autopilot channels.
// TODO(halseth): possibly make dynamic, going aggressive->lax as more channels
// are opened.
const DefaultConfTarget = 3
// Node node is an interface which represents n abstract vertex within the
// channel graph. All nodes should have at least a single edge to/from them
// within the graph.
+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
}