Skip to content

Commit

Permalink
Merge pull request cryptonomex#421 from bitshares/revert-415-mainnet-…
Browse files Browse the repository at this point in the history
…new-defaults-partial-max-ops

Revert "[mainnet] New defaults for max- and partial-ops"
  • Loading branch information
oxarbitrage committed Oct 13, 2017
2 parents df7eade + 4a8c3cd commit d5a2505
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions programs/witness_node/main.cpp
Expand Up @@ -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<fc::logging_config> load_logging_config_from_ini_file(const fc::path& config_ini_filename);

int main(int argc, char** argv) {
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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<fc::logging_config> load_logging_config_from_ini_file(const fc::path& config_ini_filename)
{
try
Expand Down

0 comments on commit d5a2505

Please sign in to comment.