funding+utxonursery+breacharbiter: use new FeeEstimator API
This commit is contained in:
4 files changed
+32
-20
No files matched your search
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user