1
0
Fork 0
mirror of https://github.com/ton-blockchain/ton synced 2025-02-14 20:22:19 +00:00

Check level of c4 and c5

This commit is contained in:
SpyCheese 2022-10-03 09:15:41 +03:00
parent e05af05635
commit 495327099c

View file

@ -503,7 +503,7 @@ int VmState::run() {
bool VmState::try_commit() {
if (cr.d[0].not_null() && cr.d[1].not_null() && cr.d[0]->get_depth() <= max_data_depth &&
cr.d[1]->get_depth() <= max_data_depth) {
cr.d[1]->get_depth() <= max_data_depth && cr.d[0]->get_level() == 0 && cr.d[1]->get_level() == 0) {
cstate.c4 = cr.d[0];
cstate.c5 = cr.d[1];
cstate.committed = true;