GRuB: Gas-Efficient Blockchain Storage via Workload-Adaptive Data Replication

11/11/2019
by   Kai Li, et al.
0

Modern Blockchains support the execution of user programs, called smart contracts. As a trusted computing platform, smart contracts bring decentralization, computation integrity, open access and information transparency to average users on the Internet. However, running smart-contract programs leads to high costs, known as Gas. Such costs prevent the use of smart contracts in data-intensive application scenarios, such as high-frequency trading and transparency logging. This paper addresses the Gas-based cost effectiveness in the most consuming layer of a smart contract, namely data storage. We present GRuB, a dynamic data-replication framework that monitors the smart-contract workload and makes online replication decisions. A new online algorithm is proposed that provides constant-bounded 'competitiveness' in Gas. To further save Gas, the workload monitor and decision maker are run off the Blockchain and with security against the forging of workload trace being monitored. A GRuB prototype is built, including a smart-contract component on Ethereum and an off-chain middleware on top of Google LevelDB. The cost evaluation under the YCSB workloads shows that GRuB can converge quickly to changing workloads and save Gas significantly compared with static replication schemes. Two case studies are conducted for data-intensive applications, including high-frequency trading and transparency logging, in which running GRuB leads to affordable Gas.

READ FULL TEXT
research
08/12/2020

GasMet: Profiling Gas Leaks in the Deployment of Solidity Smart Contracts

Nowadays, blockchain technologies are increasingly adopted for different...
research
09/23/2021

Towards Private On-Chain Algorithmic Trading

While quantitative automation related to trading crypto-assets such as E...
research
09/20/2023

Lazy Contracts: Alleviating High Gas Costs by Secure and Trustless Off-chain Execution of Smart Contracts

Smart contracts are programs that are executed on the blockchain and can...
research
11/03/2022

AdaChain: A Learned Adaptive Blockchain

This paper presents AdaChain, a learning-based blockchain framework that...
research
06/16/2021

iBatch: Saving Ethereum Fees via Secure and Cost-Effective Batching of Smart-Contract Invocations

This paper presents iBatch, a middleware system running on top of an ope...
research
04/19/2021

Off-chain Execution and Verification of Computationally Intensive Smart Contracts

We propose a novel framework for off-chain execution and verification of...
research
11/08/2018

YODA: Enabling computationally intensive contracts on blockchains with Byzantine and Selfish nodes

One major shortcoming of popular permissionless blockchains such as Bitc...

Please sign up or login with your details

Forgot password? Click here to reset