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
|
@ -249,6 +249,14 @@ bool transaction_emulator_set_libs(void *transaction_emulator, const char* shard
|
|||
return true;
|
||||
}
|
||||
|
||||
bool transaction_emulator_set_debug_enabled(void *transaction_emulator, bool debug_enabled) {
|
||||
auto emulator = static_cast<emulator::TransactionEmulator *>(transaction_emulator);
|
||||
|
||||
emulator->set_debug_enabled(debug_enabled);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
void transaction_emulator_destroy(void *transaction_emulator) {
|
||||
delete static_cast<emulator::TransactionEmulator *>(transaction_emulator);
|
||||
}
|
||||
|
@ -337,6 +345,12 @@ bool tvm_emulator_set_gas_limit(void *tvm_emulator, int64_t gas_limit) {
|
|||
return true;
|
||||
}
|
||||
|
||||
bool tvm_emulator_set_debug_enabled(void *tvm_emulator, bool debug_enabled) {
|
||||
auto emulator = static_cast<emulator::TvmEmulator *>(tvm_emulator);
|
||||
emulator->set_debug_enabled(debug_enabled);
|
||||
return true;
|
||||
}
|
||||
|
||||
const char *tvm_emulator_run_get_method(void *tvm_emulator, int method_id, const char *stack_boc) {
|
||||
auto stack_cell = boc_b64_to_cell(stack_boc);
|
||||
if (stack_cell.is_error()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue