mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-02-22 22:25:24 +01:00
parent
8d8b13a7d1
commit
50323dcd56
1 changed files with 11 additions and 1 deletions
|
@ -582,8 +582,18 @@ func NewChainControl(cfg *Config) (*ChainControl, error) {
|
||||||
homeChainConfig.Node)
|
homeChainConfig.Node)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
switch {
|
||||||
|
// If the fee URL isn't set, and the user is running mainnet, then
|
||||||
|
// we'll return an error to instruct them to set a proper fee
|
||||||
|
// estimator.
|
||||||
|
case cfg.FeeURL == "" && cfg.Bitcoin.MainNet &&
|
||||||
|
homeChainConfig.Node == "neutrino":
|
||||||
|
|
||||||
|
return nil, fmt.Errorf("--feeurl parameter required when " +
|
||||||
|
"running neutrino on mainnet")
|
||||||
|
|
||||||
// Override default fee estimator if an external service is specified.
|
// Override default fee estimator if an external service is specified.
|
||||||
if cfg.FeeURL != "" {
|
case cfg.FeeURL != "":
|
||||||
// Do not cache fees on regtest to make it easier to execute
|
// Do not cache fees on regtest to make it easier to execute
|
||||||
// manual or automated test cases.
|
// manual or automated test cases.
|
||||||
cacheFees := !cfg.Bitcoin.RegTest
|
cacheFees := !cfg.Bitcoin.RegTest
|
||||||
|
|
Loading…
Add table
Reference in a new issue