Block-STM: Scaling Blockchain Execution by Turning Ordering Curse to a Performance Blessing

Rati Gelashvili, Alexander Spiegelman, Zhuolun Xiang, George Danezis, Zekun Li +3 more
3/14/2022
108 citations
cs.DCcs.PF

Official code: danielxiangzl/Block-STM (26 stars, Rust, Apache-2.0, Rust, last commit 2024-08-02).

Abstract

Block-STM is a parallel execution engine for smart contracts, built around the principles of Software Transactional Memory. Transactions are grouped in blocks, and every execution of the block must yield the same deterministic outcome.

Show full abstract

Block-STM further enforces that the outcome is consistent with executing transactions according to a preset order, leveraging this order to dynamically detect dependencies and avoid conflicts during speculative transaction execution. At the core of Block-STM is a novel, low-overhead collaborative scheduler of execution and validation tasks. Block-STM is implemented on the main branch of the Diem Blockchain code-base and runs in production at Aptos. Our evaluation demonstrates that Block-STM is adaptive to workloads with different conflict rates and utilizes the inherent parallelism therein. Block-STM achieves up to $110k$ tps in the Diem benchmarks and up to $170k$ tps in the Aptos Benchmarks, which is a $20$x and $17$x improvement over the sequential baseline with $32$ threads, respectively. The throughput on a contended workload is up to $50k$ tps and $80k$ tps in Diem and Aptos benchmarks, respectively.

View on arXivView PDF

Code Implementations(1)

RustApache-2.0

Diem’s mission is to build a trusted and innovative financial network that empowers people and businesses around the world.

267Rust, JavaScriptJan 18, 20222 years agoApache-2.0

Similar Papers

Cite this paper

@article{gelashvili2022blockstm,
  title  = {Block-STM: Scaling Blockchain Execution by Turning Ordering Curse to a Performance Blessing},
  author = {Rati Gelashvili and Alexander Spiegelman and Zhuolun Xiang and George Danezis and Zekun Li and Dahlia Malkhi and Yu Xia and Runtian Zhou},
  year   = {2022},
  eprint = {2203.06871},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2203.06871}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2203.06871.svg)](https://codeofpaper.com/paper/2203.06871)

Discussion