Skip to content

Commit

Permalink
revert the change for get_wasm_interface().exit()
Browse files Browse the repository at this point in the history
  • Loading branch information
linh2931 committed Apr 4, 2023
1 parent 1f46ff6 commit 6a97c7b
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 14 deletions.
12 changes: 0 additions & 12 deletions libraries/chain/controller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2738,14 +2738,6 @@ struct controller_impl {
}
}

void wasm_interface_exit() {
// exit all running wasmifs
wasmif.exit();
for (auto& ele: threaded_wasmifs) {
ele.second->exit();
}
}

block_state_ptr fork_db_head() const;
}; /// controller_impl

Expand Down Expand Up @@ -3741,10 +3733,6 @@ void controller::code_block_num_last_used(const digest_type& code_hash, uint8_t
return my->code_block_num_last_used(code_hash, vm_type, vm_version, block_num);
}

void controller::wasm_interface_exit() {
return my->wasm_interface_exit();
}

/// Protocol feature activation handlers:

template<>
Expand Down
1 change: 0 additions & 1 deletion libraries/chain/include/eosio/chain/controller.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,6 @@ namespace eosio { namespace chain {
void set_to_read_window();
bool is_write_window() const;
void code_block_num_last_used(const digest_type& code_hash, uint8_t vm_type, uint8_t vm_version, uint32_t block_num);
void wasm_interface_exit();

private:
friend class apply_context;
Expand Down
2 changes: 1 addition & 1 deletion libraries/chain/webassembly/cf_system.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,6 @@ namespace eosio { namespace chain { namespace webassembly {
}

void interface::eosio_exit( int32_t code ) const {
context.control.wasm_interface_exit();
context.control.get_wasm_interface().exit();
}
}}} // ns eosio::chain::webassembly

0 comments on commit 6a97c7b

Please sign in to comment.