diff --git a/libraries/app/application.cpp b/libraries/app/application.cpp index c797e5e2a0..6cbd489e4b 100644 --- a/libraries/app/application.cpp +++ b/libraries/app/application.cpp @@ -409,9 +409,8 @@ void application_impl::startup() _force_validate = true; } - // TODO uncomment this when GUI is ready - //if( _options->count("enable-subscribe-to-all") ) - // _app_options.enable_subscribe_to_all = _options->at("enable-subscribe-to-all").as(); + if ( _options->count("enable-subscribe-to-all") ) + _app_options.enable_subscribe_to_all = _options->at( "enable-subscribe-to-all" ).as(); if( _active_plugins.find( "market_history" ) != _active_plugins.end() ) _app_options.has_market_history_plugin = true; @@ -943,12 +942,11 @@ void application::set_program_options(boost::program_options::options_descriptio ("api-access", bpo::value(), "JSON file specifying API permissions") ("plugins", bpo::value(), "Space-separated list of plugins to activate") ("io-threads", bpo::value()->implicit_value(0), "Number of IO threads, default to 0 for auto-configuration") + ("enable-subscribe-to-all", bpo::value()->implicit_value(true), + "Whether allow API clients to subscribe to universal object creation and removal events") ("enable-standby-votes-tracking", bpo::value()->implicit_value(true), "Whether to enable tracking of votes of standby witnesses and committee members. " "Set it to true to provide accurate data to API clients, set to false for slightly better performance.") - // TODO uncomment this when GUI is ready - //("enable-subscribe-to-all", bpo::value()->implicit_value(false), - // "Whether allow API clients to subscribe to universal object creation and removal events") ; command_line_options.add(configuration_file_options); command_line_options.add_options() diff --git a/libraries/app/include/graphene/app/application.hpp b/libraries/app/include/graphene/app/application.hpp index d187682b3a..4892bb9a27 100644 --- a/libraries/app/include/graphene/app/application.hpp +++ b/libraries/app/include/graphene/app/application.hpp @@ -38,8 +38,7 @@ namespace graphene { namespace app { class application_options { public: - // TODO change default to false when GUI is ready - bool enable_subscribe_to_all = true; + bool enable_subscribe_to_all = false; bool has_market_history_plugin = false; };