enable mandatory plugins to have smooth transition for next release

This commit is contained in:
pbattu123 2020-02-27 14:27:49 -04:00
parent 7f0bc332be
commit 32d9175061

View file

@ -981,18 +981,21 @@ void application::initialize(const fc::path& data_dir, const boost::program_opti
std::exit(EXIT_SUCCESS); std::exit(EXIT_SUCCESS);
} }
std::vector<string> wanted; std::set<string> wanted;
if( options.count("plugins") ) if( options.count("plugins") )
{ {
boost::split(wanted, options.at("plugins").as<std::string>(), [](char c){return c == ' ';}); boost::split(wanted, options.at("plugins").as<std::string>(), [](char c){return c == ' ';});
} }
else else
{ {
wanted.push_back("witness"); wanted.insert("account_history");
wanted.push_back("account_history"); wanted.insert("market_history");
wanted.push_back("market_history"); wanted.insert("accounts_list");
wanted.push_back("bookie"); wanted.insert("affiliate_stats");
} }
wanted.insert("witness");
wanted.insert("bookie");
int es_ah_conflict_counter = 0; int es_ah_conflict_counter = 0;
for (auto& it : wanted) for (auto& it : wanted)
{ {