chainregistry: express fee rates in sat/vbyte
This commit is contained in:
parent
166637bb55
commit
6d5c0679f4
@ -24,7 +24,6 @@ import (
|
|||||||
"github.com/lightningnetwork/lnd/routing/chainview"
|
"github.com/lightningnetwork/lnd/routing/chainview"
|
||||||
"github.com/roasbeef/btcd/chaincfg/chainhash"
|
"github.com/roasbeef/btcd/chaincfg/chainhash"
|
||||||
"github.com/roasbeef/btcd/rpcclient"
|
"github.com/roasbeef/btcd/rpcclient"
|
||||||
"github.com/roasbeef/btcutil"
|
|
||||||
"github.com/roasbeef/btcwallet/chain"
|
"github.com/roasbeef/btcwallet/chain"
|
||||||
"github.com/roasbeef/btcwallet/walletdb"
|
"github.com/roasbeef/btcwallet/walletdb"
|
||||||
)
|
)
|
||||||
@ -306,7 +305,7 @@ func newChainControlFromConfig(cfg *config, chanDB *channeldb.DB,
|
|||||||
// if we're using bitcoind as a backend, then we can
|
// if we're using bitcoind as a backend, then we can
|
||||||
// use live fee estimates, rather than a statically
|
// use live fee estimates, rather than a statically
|
||||||
// coded value.
|
// coded value.
|
||||||
fallBackFeeRate := btcutil.Amount(25)
|
fallBackFeeRate := lnwallet.SatPerVByte(25)
|
||||||
cc.feeEstimator, err = lnwallet.NewBitcoindFeeEstimator(
|
cc.feeEstimator, err = lnwallet.NewBitcoindFeeEstimator(
|
||||||
*rpcConfig, fallBackFeeRate,
|
*rpcConfig, fallBackFeeRate,
|
||||||
)
|
)
|
||||||
@ -410,7 +409,7 @@ func newChainControlFromConfig(cfg *config, chanDB *channeldb.DB,
|
|||||||
// if we're using btcd as a backend, then we can use
|
// if we're using btcd as a backend, then we can use
|
||||||
// live fee estimates, rather than a statically coded
|
// live fee estimates, rather than a statically coded
|
||||||
// value.
|
// value.
|
||||||
fallBackFeeRate := btcutil.Amount(25)
|
fallBackFeeRate := lnwallet.SatPerVByte(25)
|
||||||
cc.feeEstimator, err = lnwallet.NewBtcdFeeEstimator(
|
cc.feeEstimator, err = lnwallet.NewBtcdFeeEstimator(
|
||||||
*rpcConfig, fallBackFeeRate,
|
*rpcConfig, fallBackFeeRate,
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user