Minor QA changes

1) Add ability to enable all pairs using the new pair manager
2) Add abiity to enable/disable database subsystem via gRPC
3) Fix spelling mistakes
This commit is contained in:
Adrian Gallagher
2019-10-04 19:31:04 +10:00
parent 62a528a064
commit 2a13551dd1
12 changed files with 1760 additions and 239 deletions

View File

@@ -200,7 +200,13 @@ func LoadExchange(name string, useWG bool, wg *sync.WaitGroup) error {
}
if Bot.Settings.EnableAllPairs {
exchCfg.EnabledPairs = exchCfg.AvailablePairs
if exchCfg.CurrencyPairs != nil {
assets := exchCfg.CurrencyPairs.GetAssetTypes()
for x := range assets {
pairs := exchCfg.CurrencyPairs.GetPairs(assets[x], false)
exchCfg.CurrencyPairs.StorePairs(assets[x], pairs, true)
}
}
}
if Bot.Settings.EnableExchangeVerbose {