Concurrency Protocol Aiming at High Performance of Execution and Replay for Smart Contracts

05/17/2019
by   Shuaifeng Pang, et al.
0

Although the emergence of the programmable smart contract makes blockchain systems easily embrace a wider range of industrial areas, how to execute smart contracts efficiently becomes a big challenge nowadays. Due to the existence of Byzantine nodes, the mechanism of executing smart contracts is quite different from that in database systems, so that existing successful concurrency control protocols in database systems cannot be employed directly. Moreover, even though smart contract execution follows a two-phase style, i.e, the miner node executes a batch of smart contracts in the first phase and the validators replay them in the second phase, existing parallel solutions only focus on the optimization in the first phase, but not including the second phase. In this paper, we propose a novel efficient concurrency control scheme which is the first one to do optimization in both phases. Specifically, (i) in the first phase, we give a variant of OCC (Optimistic Concurrency Control) protocol based on batching feature to improve the concurrent execution efficiency for the miner and produce a schedule log with high parallelism for validators. Also, a graph partition algorithm is devised to divide the original schedule log into small pieces and further reduce the communication cost; and (ii) in the second phase, we give a deterministic OCC protocol to replay all smart contracts efficiently on multi-core validators where all cores can replay smart contracts independently. Theoretical analysis and extensive experimental results illustrate that the proposed scheme outperforms state-of-art solutions significantly.

READ FULL TEXT

page 1

page 12

research
09/14/2019

Transactional Smart Contracts in Blockchain Systems

This paper presents TXSC, a framework that provides smart contract devel...
research
03/13/2018

NECTAR: Non-Interactive Smart Contract Protocol using Blockchain Technology

Blockchain-driven technologies are considered disruptive because of the ...
research
02/09/2021

OptSmart: A Space Efficient Optimistic Concurrent Execution of Smart Contracts

Popular blockchains such as Ethereum and several others execute complex ...
research
01/05/2019

An Empirical Study of Speculative Concurrency in Ethereum Smart Contracts

We use historical data to estimate the potential benefit of speculative ...
research
12/18/2018

Smart Contracts for Multiagent Plan Execution in Untrusted Cyber-physical Systems

Intelligent Cyber-physical systems can be modelled as multi-agent system...
research
10/07/2022

Decentralized Vision-Based Byzantine Agent Detection in Multi-Robot Systems with IOTA Smart Contracts

Multiple opportunities lie at the intersection of multi-robot systems an...
research
05/16/2018

Airtnt: Fair Exchange Payment for Outsourced Secure Enclave Computations

We present Airtnt, a novel scheme that enables users with CPUs that supp...

Please sign up or login with your details

Forgot password? Click here to reset