IDEAS home Printed from https://ideas.repec.org/a/gam/jmathe/v12y2024i9p1347-d1385418.html
   My bibliography  Save this article

Adaptive Parallel Scheduling Scheme for Smart Contract

Author

Listed:
  • Wenjin Yang

    (School of Cyberspace Science & Technology, Beijing Institute of Technology, Beijing 100081, China
    Tencent Inc., Shenzhen 518055, China)

  • Meng Ao

    (Tencent Inc., Shenzhen 518055, China)

  • Jing Sun

    (School of Computer Science, University of Auckland, Auckland 1023, New Zealand)

  • Guoan Wang

    (School of Cyberspace Science & Technology, Beijing Institute of Technology, Beijing 100081, China)

  • Yongxuan Li

    (School of Cyberspace Science & Technology, Beijing Institute of Technology, Beijing 100081, China)

  • Chunhai Li

    (Guangxi Engineering Research Center of Industrial Internet Security and Blockchain, Guilin University of Electronic Technology, Guilin 541004, China)

  • Zhuguang Shao

    (Tencent Inc., Shenzhen 518055, China)

Abstract

With the increasing demand for decentralized systems and the widespread usage of blockchain, low throughput and high latency have become the biggest stumbling blocks in the development of blockchain systems. This problem seriously hinders the expansion of blockchain and its application in production. Most existing smart contract scheduling solutions use static feature analysis to prevent contract conflicts during parallel execution. However, the conflicts between transactions are complex; static feature analysis is not accurate enough. In this paper, we first build the dependency between smart contracts by analyzing the features. After numerous experiments, we propose a conflict model to adjust the relationship between threads and conflict to achieve high throughput and low latency. Based on these works, we propose adaptive parallel scheduling for smart contracts on the blockchain. Our adaptive parallel scheduling can distinguish conflicts between smart contracts and dynamically adjust the execution strategy of smart contracts based on the conflict factors we define. We implement our scheme on ChainMaker, one of the most popular open-source permissioned blockchains, and build experiments to verify our solution. Regarding latency, our solution demonstrates remarkable efficiency compared with the fully parallel scheme, particularly in high-conflict transaction scenarios, where our solution achieves latency levels just one-twentieth of the fully parallel scheme. Regarding throughput, our solution significantly outperforms the fully parallel scheme, achieving 30 times higher throughput in high-conflict transaction scenarios. These results highlight the superior performance and effectiveness of our solution in addressing latency and throughput challenges, particularly in environments with high transaction conflicts.

Suggested Citation

  • Wenjin Yang & Meng Ao & Jing Sun & Guoan Wang & Yongxuan Li & Chunhai Li & Zhuguang Shao, 2024. "Adaptive Parallel Scheduling Scheme for Smart Contract," Mathematics, MDPI, vol. 12(9), pages 1-17, April.
  • Handle: RePEc:gam:jmathe:v:12:y:2024:i:9:p:1347-:d:1385418
    as

    Download full text from publisher

    File URL: https://www.mdpi.com/2227-7390/12/9/1347/pdf
    Download Restriction: no

    File URL: https://www.mdpi.com/2227-7390/12/9/1347/
    Download Restriction: no
    ---><---

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:gam:jmathe:v:12:y:2024:i:9:p:1347-:d:1385418. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    We have no bibliographic references for this item. You can help adding them by using this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: MDPI Indexing Manager (email available below). General contact details of provider: https://www.mdpi.com .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.