Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable custom_operations plugin by default #2143

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docker/default_config.ini
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ rpc-endpoint = 0.0.0.0:8090
# api-limit-get-withdraw-permissions-by-recipient = 101

# Space-separated list of plugins to activate
plugins = witness account_history market_history grouped_orders api_helper_indexes
plugins = witness account_history market_history grouped_orders api_helper_indexes custom_operations

# Do not exit if api_helper_indexes plugin is not enabled.
# ignore-api-helper-indexes-warning = true
Expand Down
10 changes: 5 additions & 5 deletions programs/witness_node/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,14 @@ int main(int argc, char** argv) {
try {
bpo::options_description app_options("BitShares Witness Node");
bpo::options_description cfg_options("BitShares Witness Node");
std::string default_plugins = "witness account_history market_history grouped_orders "
"api_helper_indexes custom_operations";
app_options.add_options()
("help,h", "Print this help message and exit.")
("data-dir,d", bpo::value<boost::filesystem::path>()->default_value("witness_node_data_dir"),
"Directory containing databases, configuration file, etc.")
("version,v", "Display version information")
("plugins", bpo::value<std::string>()
->default_value("witness account_history market_history grouped_orders api_helper_indexes"),
("plugins", bpo::value<std::string>()->default_value(default_plugins),
"Space-separated list of plugins to activate")
("ignore-api-helper-indexes-warning", "Do not exit if api_helper_indexes plugin is not enabled.");

Expand All @@ -84,9 +85,8 @@ int main(int argc, char** argv) {
cfg_options.add(cfg);

cfg_options.add_options()
("plugins", bpo::value<std::string>()
->default_value("witness account_history market_history grouped_orders api_helper_indexes"),
"Space-separated list of plugins to activate")
("plugins", bpo::value<std::string>()->default_value(default_plugins),
"Space-separated list of plugins to activate")
("ignore-api-helper-indexes-warning", "Do not exit if api_helper_indexes plugin is not enabled.");

auto witness_plug = node->register_plugin<witness_plugin::witness_plugin>();
Expand Down