Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion ethexe/processor/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -192,10 +192,14 @@ impl Processor {
let mut transitions =
InBlockTransitions::new(block.header.height, program_states, schedule);

transitions = self.process_tasks(transitions);
// First step: push injected to queues and handle block events.
transitions =
self.handle_injected_and_events(transitions, injected_transactions, events)?;

// Second step: process scheduled tasks.
transitions = self.process_tasks(transitions);

// Third step: process queues until limits are exhausted or all queues are empty.
if let Some(gas_allowance) = gas_allowance {
transitions = self
.process_queues(transitions, block, gas_allowance, promise_out_tx)
Expand Down
Loading