From 6d5c0679f482fb0c0353095091181f0a1398378a Mon Sep 17 00:00:00 2001 From: "Johan T. Halseth" Date: Tue, 13 Feb 2018 15:00:47 +0100 Subject: [PATCH] chainregistry: express fee rates in sat/vbyte --- chainregistry.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/chainregistry.go b/chainregistry.go index 7cbed86e..909d12f7 100644 --- a/chainregistry.go +++ b/chainregistry.go @@ -24,7 +24,6 @@ import ( "github.com/lightningnetwork/lnd/routing/chainview" "github.com/roasbeef/btcd/chaincfg/chainhash" "github.com/roasbeef/btcd/rpcclient" - "github.com/roasbeef/btcutil" "github.com/roasbeef/btcwallet/chain" "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 // use live fee estimates, rather than a statically // coded value. - fallBackFeeRate := btcutil.Amount(25) + fallBackFeeRate := lnwallet.SatPerVByte(25) cc.feeEstimator, err = lnwallet.NewBitcoindFeeEstimator( *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 // live fee estimates, rather than a statically coded // value. - fallBackFeeRate := btcutil.Amount(25) + fallBackFeeRate := lnwallet.SatPerVByte(25) cc.feeEstimator, err = lnwallet.NewBtcdFeeEstimator( *rpcConfig, fallBackFeeRate, )