Definition

What is Optimistic parallel execution?

Optimistic parallel execution runs transactions concurrently on the assumption they do not conflict, then detects and re-runs any transaction that read state another transaction in the same block changed.

Each transaction records its read set and write set. After parallel execution, results are committed in the block's original order. If a transaction's read set overlaps a previous transaction's write set, it is re-executed with the correct inputs. The final state is identical to sequential execution; only the time taken changes.

Go deeper

Related terms

Definition by , founder of Monsmith.

See it in practice

Open Monsmith, paste a contract, and watch the audit and profiler explain it.

Open the studio