首页> 外文会议>Euromicro International Conference on Parallel, Distributed and Network-Based Processing >An Efficient Framework for Optimistic Concurrent Execution of Smart Contracts
【24h】

An Efficient Framework for Optimistic Concurrent Execution of Smart Contracts

机译:智能合约乐观并发执行的有效框架

获取原文

摘要

Blockchain platforms such as Ethereum and several others execute complex transactions in blocks through user-defined scripts known as smart contracts. Normally, a block of the chain consists of multiple transactions of smart contracts which are added by a miner. To append a correct block into the blockchain, miners execute these transactions of smart contracts sequentially. Later the validators serially re-execute the smart contract transactions of the block. If the validators agree with the final state of the block as recorded by the miner, then the block is said to be validated. It is then added to the blockchain using a consensus protocol. In Ethereum and other blockchains that support cryptocurrencies, a miner gets an incentive every time such a valid block successfully added to the blockchain. In most of the current day blockchains the miners and validators execute the smart contract transactions serially. In the current era of multi-core processors, by employing the serial execution of the transactions, the miners and validators fail to utilize the cores properly and as a result, have poor throughput. By adding concurrency to smart contracts execution, we can achieve better efficiency and higher throughput. In this paper, we develop an efficient framework to execute the smart contract transactions concurrently using optimistic Software Transactional Memory systems (STMs). Miners execute smart contract transactions concurrently using multi-threading to generate the final state of blockchain. STM is used to take care of synchronization issues among the transactions and ensure atomicity. Now when the validators also execute the transactions (as a part of validation) concurrently using multi-threading, then the validators may get a different final state depending on the order of execution of conflicting transactions. To avoid this, the miners also generate a block graph of the transactions during the concurrent execution and store it in the block. This graph captures the conflict relations among the transactions and is generated concurrently as the transactions are executed by different threads. The miner proposes a block which consists of set of transactions, block graph, hash of the previous block, and final state of each shared data-objects. Later, the validators re-execute the same smart contract transactions concurrently and deterministically with the help of block graph given by the miner to verify the final state. If the validation is successful then proposed block appended into the blockchain and miner gets incentive otherwise discard the proposed block. We execute the smart contract transactions concurrently using Basic Time stamp Ordering (BTO) and Multi-Version Time stamp Ordering (MVTO) protocols as optimistic STMs. BTO and MVTO miner achieves 3.6x and 3.7x average speedups over serial miner respectively. Along with, BTO and MVTO validator outperform average 40.8x and 47.1x than serial validator respectively.
机译:以太坊(Ethereum)等区块链平台和其他几个区块链平台通过用户定义的脚本(称为智能合约)在区块中执行复杂交易。通常,链中的一个区块由矿工添加的多个智能合约交易组成。为了将正确的区块添加到区块链中,矿工按顺序执行智能合约的这些交易。后来,验证者依次重新执行该区块的智能合约交易。如果验证者同意矿工记录的区块的最终状态,则称该区块已被验证。然后使用共识协议将其添加到区块链中。在以太坊和其他支持加密货币的区块链中,每当将这样的有效区块成功添加到区块链中时,矿工都会获得激励。在当今的大多数区块链中,矿工和验证者都按顺序执行智能合约交易。在当前的多核处理器时代,通过采用事务的串行执行,矿工和验证器无法正确利用核,因此吞吐量很差。通过在智能合约执行中增加并发性,我们可以实现更高的效率和更高的吞吐量。在本文中,我们开发了一个高效的框架,可以使用乐观的软件事务存储系统(STM)同时执行智能合约交易。矿工使用多线程同时执行智能合约交易以生成区块链的最终状态。 STM用于处理事务之间的同步问题并确保原子性。现在,当验证程序还使用多线程同时执行事务(作为验证的一部分)时,验证程序可能会根据冲突事务的执行顺序获得不同的最终状态。为了避免这种情况,矿工还在并发执行期间生成了交易的框图,并将其存储在该区块中。该图捕获了事务之间的冲突关系,并在由不同线程执行事务时同时生成。矿工提出了一个块,该块由事务集,块图,前一个块的哈希以及每个共享数据对象的最终状态组成。后来,验证者借助矿工提供的框图来同时并确定性地重新执行相同的智能合约交易,以验证最终状态。如果验证成功,则将提议的区块添加到区块链中,矿工将获得激励,否则丢弃提议的区块。我们使用基本时间戳排序(BTO)和多版本时间戳排序(MVTO)协议作为乐观STM并发执行智能合约交易。与串行矿机相比,BTO和MVTO矿机的平均速度分别提高了3.6倍和3.7倍。同时,BTO和MVTO验证器的平均性能分别比串行验证器高40.8倍和47.1倍。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号