chainregistry: also disable fee estimation for regtest

This commit is contained in:
Olaoluwa Osuntokun 2017-11-29 16:15:00 -08:00
parent 94ba7f964d
commit f4f476fe9f
No known key found for this signature in database
GPG Key ID: 964EA263DD637C21
1 changed files with 5 additions and 3 deletions

View File

@ -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