pilot: express fee rates using types, use EstimateFeePerVSize
This commit is contained in:
parent
3dc9e3c7d4
commit
e48d51db92
4
pilot.go
4
pilot.go
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user