mirror of
https://github.com/ton-blockchain/ton
synced 2025-03-09 15:40:10 +00:00
Disallow recursive library cells (#868)
* Disallow recursive library cells * Stop emulation of external messages on accept --------- Co-authored-by: SpyCheese <mikle98@yandex.ru>
This commit is contained in:
parent
128a85bee5
commit
42d4c051ef
7 changed files with 50 additions and 0 deletions
|
@ -67,6 +67,10 @@ int exec_set_gas_generic(VmState* st, long long new_gas_limit) {
|
|||
throw VmNoGas{};
|
||||
}
|
||||
st->change_gas_limit(new_gas_limit);
|
||||
if (st->get_stop_on_accept_message()) {
|
||||
VM_LOG(st) << "External message is accepted, stopping TVM";
|
||||
return st->jump(td::Ref<QuitCont>{true, 0});
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue