Skip to content

Commit

Permalink
forced-eos-vm-oc to eos-vm-oc-forced
Browse files Browse the repository at this point in the history
  • Loading branch information
spoonincode committed Jan 27, 2025
1 parent 158f3d3 commit b9d181a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion libraries/chain/wasm_interface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ std::istream& operator>>(std::istream& in, wasm_interface::vm_type& runtime) {
runtime = eosio::chain::wasm_interface::vm_type::eos_vm;
else if (s == "eos-vm-jit")
runtime = eosio::chain::wasm_interface::vm_type::eos_vm_jit;
else if (s == "forced-eos-vm-oc")
else if (s == "eos-vm-oc-forced")
runtime = eosio::chain::wasm_interface::vm_type::eos_vm_oc;
else
in.setstate(std::ios_base::failbit);
Expand Down
2 changes: 1 addition & 1 deletion plugins/chain_plugin/chain_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ void chain_plugin::set_program_options(options_description& cli, options_descrip
("checkpoint", bpo::value<vector<string>>()->composing(), "Pairs of [BLOCK_NUM,BLOCK_ID] that should be enforced as checkpoints.")
("wasm-runtime", bpo::value<eosio::chain::wasm_interface::vm_type>()->value_name("runtime")->notifier([](const auto& vm){
if(vm == wasm_interface::vm_type::eos_vm_oc)
wlog("forced-eos-vm-oc mode is not supported. It is for development purposes only");
wlog("eos-vm-oc-forced mode is not supported. It is for development purposes only");
})->default_value(eosio::chain::config::default_wasm_runtime, default_wasm_runtime_str), wasm_runtime_opt.c_str()
)
("profile-account", boost::program_options::value<vector<string>>()->composing(),
Expand Down
2 changes: 1 addition & 1 deletion tests/read_only_trx_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
appArgs.add(flag="--read-only-threads", type=int, help="number of read-only threads", default=0)
appArgs.add(flag="--num-test-runs", type=int, help="number of times to run the tests", default=1)
appArgs.add(flag="--eos-vm-oc-enable", type=str, help="specify eos-vm-oc-enable option", default="auto")
appArgs.add(flag="--wasm-runtime", type=str, help="if wanting eos-vm-oc, must use 'forced-eos-vm-oc'", default="eos-vm-jit")
appArgs.add(flag="--wasm-runtime", type=str, help="if wanting eos-vm-oc, must use 'eos-vm-oc-forced'", default="eos-vm-jit")

args=TestHelper.parse_args({"-p","-n","-d","-s","--nodes-file","--seed"
,"--activate-if","--dump-error-details","-v","--leave-running"
Expand Down

0 comments on commit b9d181a

Please sign in to comment.