Skip to content

Commit 352b854

Browse files
authored
Merge pull request #2143 from bitshares/pr-2092-enable-custom-operations-plugin-by-default
Enable custom_operations plugin by default
2 parents e836204 + 5bd1a59 commit 352b854

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

docker/default_config.ini

+1-1
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ rpc-endpoint = 0.0.0.0:8090
119119
# api-limit-get-withdraw-permissions-by-recipient = 101
120120

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

124124
# Do not exit if api_helper_indexes plugin is not enabled.
125125
# ignore-api-helper-indexes-warning = true

programs/witness_node/main.cpp

+5-5
Original file line numberDiff line numberDiff line change
@@ -67,13 +67,14 @@ int main(int argc, char** argv) {
6767
try {
6868
bpo::options_description app_options("BitShares Witness Node");
6969
bpo::options_description cfg_options("BitShares Witness Node");
70+
std::string default_plugins = "witness account_history market_history grouped_orders "
71+
"api_helper_indexes custom_operations";
7072
app_options.add_options()
7173
("help,h", "Print this help message and exit.")
7274
("data-dir,d", bpo::value<boost::filesystem::path>()->default_value("witness_node_data_dir"),
7375
"Directory containing databases, configuration file, etc.")
7476
("version,v", "Display version information")
75-
("plugins", bpo::value<std::string>()
76-
->default_value("witness account_history market_history grouped_orders api_helper_indexes"),
77+
("plugins", bpo::value<std::string>()->default_value(default_plugins),
7778
"Space-separated list of plugins to activate")
7879
("ignore-api-helper-indexes-warning", "Do not exit if api_helper_indexes plugin is not enabled.");
7980

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

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

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

0 commit comments

Comments
 (0)