mirror of
https://github.com/ton-blockchain/ton
synced 2025-03-09 15:40:10 +00:00
Add debug enabled flag to transaction and TVM emulator (#662)
* Add debug enabled flag to transaction and TVM emulator * Set debug_enabled false in Emulator constructor
This commit is contained in:
parent
eabcb6a8e9
commit
f51eb2d747
9 changed files with 64 additions and 7 deletions
|
@ -34,7 +34,7 @@ td::Result<std::unique_ptr<TransactionEmulator::EmulationResult>> TransactionEmu
|
|||
return fetch_res.move_as_error_prefix("cannot fetch config params ");
|
||||
}
|
||||
|
||||
vm::init_op_cp0();
|
||||
vm::init_op_cp0(debug_enabled_);
|
||||
|
||||
if (!lt) {
|
||||
lt = lt_;
|
||||
|
@ -257,4 +257,8 @@ void TransactionEmulator::set_libs(vm::Dictionary &&libs) {
|
|||
libraries_ = std::forward<vm::Dictionary>(libs);
|
||||
}
|
||||
|
||||
void TransactionEmulator::set_debug_enabled(bool debug_enabled) {
|
||||
debug_enabled_ = debug_enabled;
|
||||
}
|
||||
|
||||
} // namespace emulator
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue