Skip to content

Commit d4ccc05

Browse files
committed
GH-1329 Add vaulta to default eos vm oc whitelist
1 parent 7d97b85 commit d4ccc05

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

plugins/chain_plugin/chain_plugin.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ void chain_plugin::set_program_options(options_description& cli, options_descrip
363363
"'auto' - EOS VM OC tier-up is enabled for eosio.* accounts, read-only trxs, and except on producers applying blocks.\n"
364364
"'all' - EOS VM OC tier-up is enabled for all contract execution.\n"
365365
"'none' - EOS VM OC tier-up is completely disabled.\n")
366-
("eos-vm-oc-whitelist", bpo::value<vector<string>>()->composing()->multitoken()->default_value(std::vector<string>{{"xsat"}}),
366+
("eos-vm-oc-whitelist", bpo::value<vector<string>>()->composing()->multitoken()->default_value(std::vector<string>{"xsat", "vaulta"}),
367367
"EOS VM OC tier-up whitelist account suffixes for tier-up runtime 'auto'.")
368368
#endif
369369
("enable-account-queries", bpo::value<bool>()->default_value(false), "enable queries to find accounts by various metadata.")

plugins/chain_plugin/test/plugin_config_test.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ BOOST_AUTO_TEST_CASE(chain_plugin_default_tests) {
2222

2323
// test default eos-vm-oc-whitelist
2424
BOOST_CHECK(plugin.chain().is_eos_vm_oc_whitelisted(eosio::chain::name{"xsat"}));
25+
BOOST_CHECK(plugin.chain().is_eos_vm_oc_whitelisted(eosio::chain::name{"vaulta"}));
2526
}
2627

2728
BOOST_AUTO_TEST_CASE(chain_plugin_eos_vm_oc_whitelist) {
@@ -38,4 +39,5 @@ BOOST_AUTO_TEST_CASE(chain_plugin_eos_vm_oc_whitelist) {
3839
BOOST_CHECK(plugin.chain().is_eos_vm_oc_whitelisted(eosio::chain::name{"hello"}));
3940
BOOST_CHECK(plugin.chain().is_eos_vm_oc_whitelisted(eosio::chain::name{"xs.hello"}));
4041
BOOST_CHECK(!plugin.chain().is_eos_vm_oc_whitelisted(eosio::chain::name{"xsat"}));
42+
BOOST_CHECK(!plugin.chain().is_eos_vm_oc_whitelisted(eosio::chain::name{"vaulta"}));
4143
}

0 commit comments

Comments
 (0)