Skip to content

Commit

Permalink
Reset operation id before executing async message (#4826)
Browse files Browse the repository at this point in the history
  • Loading branch information
sydhds authored Jan 17, 2025
1 parent 0979aa5 commit 4719402
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions massa-execution-worker/src/execution.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1740,6 +1740,9 @@ impl ExecutionState {
let messages = context_guard!(self)
.take_async_batch(async_msg_gas_available, self.config.async_msg_cst_gas_cost);

// clear operation id (otherwise events will be generated using this operation id)
self.execution_context.lock().origin_operation_id = None;

// Try executing asynchronous messages.
// Effects are cancelled on failure and the sender is reimbursed.
for (_message_id, message) in messages {
Expand Down

0 comments on commit 4719402

Please sign in to comment.