Groundhog:通过可交换交易语义实现线性可扩展的智能合约
Groundhog: Linearly-Scalable Smart Contracting via Commutative Transaction Semantics
AI总结:
本文提出 Groundhog 智能合约执行引擎,利用区块内无序交易、可交换语义和预留—提交机制消除争用,在 96 核上实现每秒逾 50 万笔支付交易。
摘要:
Groundhog 是一种围绕交易区块并发执行而设计的新型智能合约执行引擎。与先前工作不同,在 Groundhog 中,同一区块内的交易彼此之间不排序。相反,我们的关键设计洞见首先是设计一组可交换语义,使 Groundhog 运行时能够确定性地解决对共享数据的并发访问。其次,某些存储访问(例如从账户取款)会产生无法解决的冲突;因此,Groundhog 通过预留—提交过程对持久化存储访问强制施加有效性约束。这两个想法赋予 Groundhog 一套语义:尽管不如传统顺序语义强大,但它们足够灵活,可实现多种重要应用,并且严格强于当今一些生产级区块链所使用的语义。与先前的智能合约系统不同,交易吞吐量绝不会因交易之间的争用而受损。使用 96 个 CPU 核心,无论账户数量是 1000 万还是仅 2 个,Groundhog 每秒都能处理超过 50 万笔支付交易。
英文摘要:
Groundhog is a novel design for a smart contract execution engine based around concurrent execution of blocks of transactions. Unlike prior work, transactions within a block in Groundhog are not ordered relative to one another. Instead, our key design insights are first, to design a set of commutative semantics that lets the Groundhog runtime deterministically resolve concurrent accesses to shared data. Second, some storage accesses (such as withdrawing money from an account) conflict irresolvably; Groundhog therefore enforces validity constraints on persistent storage accesses via a reserve-commit process. These two ideas give Groundhog a set of semantics that, while not as powerful as traditional sequential semantics, are flexible enough to implement a wide variety of important applications, and are strictly more powerful than the semantics used in some production blockchains today. Unlike prior smart contract systems, transactions throughput never suffers from contention between transactions. Using 96 CPU cores, Groundhog can process more than half a million payment transactions per second, whether between 10M accounts or just 2.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。