Skip to content

Commit da5644e

Browse files
authored
Enable VmState::jump_to bugfix in version 9 (#1491)
1 parent 0f6cf13 commit da5644e

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

crypto/block/transaction.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1156,7 +1156,7 @@ namespace transaction {
11561156
* It is activated by setting global version to 5 in ConfigParam 8.
11571157
* This config change also activates new behavior for special accounts in masterchain.
11581158
*
1159-
* In Augost 2024 it was decided to unlock other old highload wallets that got into the same situation.
1159+
* In August 2024 it was decided to unlock other old highload wallets that got into the same situation.
11601160
* See https://t.me/tondev_news/129
11611161
* It is activated by setting global version to 9.
11621162
*

crypto/vm/vm.h

+1-2
Original file line numberDiff line numberDiff line change
@@ -375,8 +375,7 @@ class VmState final : public VmStateInterface {
375375
if (cnt > free_nested_cont_jump && global_version >= 9) {
376376
consume_gas(1);
377377
}
378-
379-
if (cont.not_null()) {
378+
if (cont.not_null() && global_version >= 9) {
380379
const ControlData* cont_data = cont->get_cdata();
381380
if (cont_data && (cont_data->stack.not_null() || cont_data->nargs >= 0)) {
382381
// if cont has non-empty stack or expects fixed number of arguments, jump is not simple

doc/GlobalVersions.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -133,4 +133,5 @@ Example: if the last masterchain block seqno is `19071` then the list contains b
133133
- Fix exception code in some TVM instructions: now `stk_und` has priority over other error codes.
134134
- `PFXDICTADD`, `PFXDICTSET`, `PFXDICTREPLACE`, `PFXDICTDEL`, `GETGASFEE`, `GETSTORAGEFEE`, `GETFORWARDFEE`, `GETORIGINALFWDFEE`, `GETGASFEESIMPLE`, `GETFORWARDFEESIMPLE`, `HASHEXT`
135135
- Now setting the contract code to a library cell does not consume additional gas on execution of the code.
136-
- Temporary increase gas limit for some accounts (see [this post](https://t.me/tondev_news/129) for details, `override_gas_limit` in `transaction.cpp` for the list of accounts).
136+
- Temporary increase gas limit for some accounts (see [this post](https://t.me/tondev_news/129) for details, `override_gas_limit` in `transaction.cpp` for the list of accounts).
137+
- Fix recursive jump to continuations with non-null control data.

0 commit comments

Comments
 (0)