We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2f01641 commit 68710bcCopy full SHA for 68710bc
libraries/vm_manager/vm_manager.cpp
@@ -220,13 +220,11 @@ int vm_manager::load_vm_wavm() {
220
221
auto itr = vm_map.find(3);
222
if (itr != vm_map.end()) {
223
- if (db_api::get().is_account(N(eosio.token))) {
224
- auto t = time_counter(N(eosio.token));
225
- itr->second->preload(N(eosio.token));
226
- }
227
- if (db_api::get().is_account(N(eosio))) {
228
- auto t = time_counter(N(eosio));
229
- itr->second->preload(N(eosio));
+ for (uint64_t account : {N(eosio.token), N(eosio)}) {
+ if (db_api::get().is_account(account) && db_api::get().get_code(account).size() > 0) {
+ auto t = time_counter(account);
+ itr->second->preload(account);
+ }
230
}
231
232
0 commit comments