From 4a8c3cd1136db5012c3f0efbabd1b2b944ccbdfe Mon Sep 17 00:00:00 2001 From: oxarbitrage Date: Fri, 13 Oct 2017 18:36:05 -0300 Subject: [PATCH] Revert "[mainnet] New defaults for max- and partial-ops" --- programs/witness_node/main.cpp | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/programs/witness_node/main.cpp b/programs/witness_node/main.cpp index d8edacfcec..b2b1bc89d8 100644 --- a/programs/witness_node/main.cpp +++ b/programs/witness_node/main.cpp @@ -59,8 +59,6 @@ using namespace graphene; namespace bpo = boost::program_options; void write_default_logging_config_to_stream(std::ostream& out); -void write_default_optimization_config_to_stream(std::ostream& out); - fc::optional load_logging_config_from_ini_file(const fc::path& config_ini_filename); int main(int argc, char** argv) { @@ -170,7 +168,6 @@ int main(int argc, char** argv) { } out_cfg << "\n"; } - write_default_optimization_config_to_stream(out_cfg); write_default_logging_config_to_stream(out_cfg); out_cfg.close(); // read the default logging config we just wrote out to the file and start using it @@ -248,23 +245,6 @@ void write_default_logging_config_to_stream(std::ostream& out) "appenders=p2p\n\n"; } -/* - * Default optimizations: - * - * Instead of setting the default behavior for optimizations, we change the - * default behavior ONLY when the application is newly installed and no - * configuration exists, yet. This way, we don't break existing installations - * even though we set optimization flags for new configs. - * - */ -void write_default_optimization_config_to_stream(std::ostream& out) -{ - out << "# Keep only those operations in memory that are related to account history tracking (defaults to true)\n" - "partial-operations = true\n\n" - "# Maximum number of operations per account will be kept in memory (defaults to 1000)\n" - "max-ops-per-account = 1000\n\n"; -} - fc::optional load_logging_config_from_ini_file(const fc::path& config_ini_filename) { try