pilot: express fee rates using types, use EstimateFeePerVSize
This commit is contained in:
1 file changed
+2
-2
@@ -85,7 +85,7 @@ func (c *chanController) OpenChannel(target *btcec.PublicKey,
|
|||||||
|
|
||||||
// With the connection established, we'll now establish our connection
|
// With the connection established, we'll now establish our connection
|
||||||
// to the target peer, waiting for the first update before we exit.
|
// to the target peer, waiting for the first update before we exit.
|
||||||
feePerWeight, err := c.server.cc.feeEstimator.EstimateFeePerWeight(3)
|
feePerVSize, err := c.server.cc.feeEstimator.EstimateFeePerVSize(3)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
@@ -94,7 +94,7 @@ func (c *chanController) OpenChannel(target *btcec.PublicKey,
|
|||||||
minHtlc := lnwire.NewMSatFromSatoshis(1)
|
minHtlc := lnwire.NewMSatFromSatoshis(1)
|
||||||
|
|
||||||
updateStream, errChan := c.server.OpenChannel(target, amt, 0,
|
updateStream, errChan := c.server.OpenChannel(target, amt, 0,
|
||||||
minHtlc, feePerWeight, false)
|
minHtlc, feePerVSize, false)
|
||||||
|
|
||||||
select {
|
select {
|
||||||
case err := <-errChan:
|
case err := <-errChan:
|
||||||
|
|||||||
Reference in new issue
Block a user