mirror of
https://github.com/lightningnetwork/lnd.git
synced 2024-11-19 01:43:16 +01:00
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
|
||||
// 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 {
|
||||
return err
|
||||
}
|
||||
@ -94,7 +94,7 @@ func (c *chanController) OpenChannel(target *btcec.PublicKey,
|
||||
minHtlc := lnwire.NewMSatFromSatoshis(1)
|
||||
|
||||
updateStream, errChan := c.server.OpenChannel(target, amt, 0,
|
||||
minHtlc, feePerWeight, false)
|
||||
minHtlc, feePerVSize, false)
|
||||
|
||||
select {
|
||||
case err := <-errChan:
|
||||
|
Loading…
Reference in New Issue
Block a user