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
|
@ -64,6 +64,14 @@ EMULATOR_EXPORT bool transaction_emulator_set_config(void *transaction_emulator,
|
|||
*/
|
||||
EMULATOR_EXPORT bool transaction_emulator_set_libs(void *transaction_emulator, const char* libs_boc);
|
||||
|
||||
/**
|
||||
* @brief Enable or disable TVM debug primitives
|
||||
* @param transaction_emulator Pointer to TransactionEmulator object
|
||||
* @param debug_enabled Whether debug primitives should be enabled or not
|
||||
* @return true in case of success, false in case of error
|
||||
*/
|
||||
EMULATOR_EXPORT bool transaction_emulator_set_debug_enabled(void *transaction_emulator, bool debug_enabled);
|
||||
|
||||
/**
|
||||
* @brief Emulate transaction
|
||||
* @param transaction_emulator Pointer to TransactionEmulator object
|
||||
|
@ -134,6 +142,14 @@ EMULATOR_EXPORT bool tvm_emulator_set_c7(void *tvm_emulator, const char *address
|
|||
*/
|
||||
EMULATOR_EXPORT bool tvm_emulator_set_gas_limit(void *tvm_emulator, int64_t gas_limit);
|
||||
|
||||
/**
|
||||
* @brief Enable or disable TVM debug primitives
|
||||
* @param tvm_emulator Pointer to TVM emulator
|
||||
* @param debug_enabled Whether debug primitives should be enabled or not
|
||||
* @return true in case of success, false in case of error
|
||||
*/
|
||||
EMULATOR_EXPORT bool tvm_emulator_set_debug_enabled(void *tvm_emulator, bool debug_enabled);
|
||||
|
||||
/**
|
||||
* @brief Run get method
|
||||
* @param tvm_emulator Pointer to TVM emulator
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue