mirror of
https://github.com/ton-blockchain/ton
synced 2025-03-09 15:40:10 +00:00
Do not retranslate external messages with wrong initstate (#778)
This commit is contained in:
parent
41ed354b9f
commit
cdf96a21d0
1 changed files with 5 additions and 0 deletions
|
@ -1084,6 +1084,11 @@ bool Transaction::prepare_compute_phase(const ComputePhaseConfig& cfg) {
|
||||||
} else if (in_msg_state.not_null()) {
|
} else if (in_msg_state.not_null()) {
|
||||||
unpack_msg_state(true); // use only libraries
|
unpack_msg_state(true); // use only libraries
|
||||||
}
|
}
|
||||||
|
if (in_msg_extern && in_msg_state.not_null() && account.addr != in_msg_state->get_hash().bits()) {
|
||||||
|
LOG(DEBUG) << "in_msg_state hash mismatch in external message";
|
||||||
|
cp.skip_reason = ComputePhase::sk_bad_state;
|
||||||
|
return true;
|
||||||
|
}
|
||||||
// initialize VM
|
// initialize VM
|
||||||
Ref<vm::Stack> stack = prepare_vm_stack(cp);
|
Ref<vm::Stack> stack = prepare_vm_stack(cp);
|
||||||
if (stack.is_null()) {
|
if (stack.is_null()) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue