From f4f476fe9fc0ea4b6a3574624ec3adf229838986 Mon Sep 17 00:00:00 2001 From: Olaoluwa Osuntokun Date: Wed, 29 Nov 2017 16:15:00 -0800 Subject: [PATCH] chainregistry: also disable fee estimation for regtest --- chainregistry.go | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/chainregistry.go b/chainregistry.go index f36d634a..77e8dc08 100644 --- a/chainregistry.go +++ b/chainregistry.go @@ -270,9 +270,11 @@ func newChainControlFromConfig(cfg *config, chanDB *channeldb.DB, walletConfig.ChainSource = chainRPC - // If we're not in simnet mode, then we'll attempt to use a - // proper fee estimator for testnet. - if !cfg.Bitcoin.SimNet && !cfg.Litecoin.SimNet { + // If we're not in simnet or regtest mode, then we'll attempt + // to use a proper fee estimator for testnet. + if !cfg.Bitcoin.SimNet && !cfg.Litecoin.SimNet && + !cfg.Bitcoin.RegTest && !cfg.Litecoin.RegTest { + ltndLog.Infof("Initializing btcd backed fee estimator") // Finally, we'll re-initialize the fee estimator, as