@@ -363,7 +363,7 @@ void chain_plugin::set_program_options(options_description& cli, options_descrip
363
363
" 'auto' - EOS VM OC tier-up is enabled for eosio.* accounts, read-only trxs, and except on producers applying blocks.\n "
364
364
" 'all' - EOS VM OC tier-up is enabled for all contract execution.\n "
365
365
" 'none' - EOS VM OC tier-up is completely disabled.\n " )
366
- (" eos-vm-oc-whitelist" , bpo::value<vector<string>>()->composing ()->default_value (std::vector<string>{{" xsat" }}),
366
+ (" eos-vm-oc-whitelist" , bpo::value<vector<string>>()->composing ()->multitoken ()-> default_value (std::vector<string>{{" xsat" }}),
367
367
" EOS VM OC tier-up whitelist account suffixes for tier-up runtime 'auto'." )
368
368
#endif
369
369
(" enable-account-queries" , bpo::value<bool >()->default_value (false ), " enable queries to find accounts by various metadata." )
@@ -533,6 +533,15 @@ void chain_plugin_impl::plugin_initialize(const variables_map& options) {
533
533
534
534
LOAD_VALUE_SET ( options, " trusted-producer" , chain_config->trusted_producers );
535
535
536
+ if (!chain_config->eos_vm_oc_whitelist_suffixes .empty ()) {
537
+ const auto & wl = chain_config->eos_vm_oc_whitelist_suffixes ;
538
+ std::string s = std::accumulate (std::next (wl.begin ()), wl.end (),
539
+ wl.begin ()->to_string (),
540
+ [](std::string a, account_name b) -> std::string {
541
+ return std::move (a) + " , " + b.to_string ();
542
+ });
543
+ ilog (" eos-vm-oc-whitelist accounts: ${a}" , (" a" , s));
544
+ }
536
545
if ( options.count ( " action-blacklist" )) {
537
546
const std::vector<std::string>& acts = options[" action-blacklist" ].as <std::vector<std::string>>();
538
547
auto & list = chain_config->action_blacklist ;
0 commit comments