应用科学学报 ›› 2020, Vol. 38 ›› Issue (1): 119-126.doi: 10.3969/j.issn.0255-8297.2020.01.009

• 区块链 • 上一篇    下一篇

区块链节点存储优化方案

江云超, 何小卫, 崔一举   

  1. 浙江师范大学 数学与计算机科学学院, 浙江 金华 321004
  • 收稿日期:2019-10-29 出版日期:2020-01-31 发布日期:2020-01-19
  • 作者简介:何小卫,教授,研究方向为机器学习、区块链技术.E-mail:jhhxw@zjnu.cn
  • 基金资助:
    国家自然科学基金(No.61572033)资助

Blockchain Node Storage Optimization Scheme

JIANG Yunchao, HE Xiaowei, CUI Yiju   

  1. Mathematics and Computer Science College, Zhejiang Normal University, Jinhua 321004, Zhejiang Province, China
  • Received:2019-10-29 Online:2020-01-31 Published:2020-01-19

摘要: 随着区块链技术的不断发展,区块链中的区块也在不断增加,区块链新节点面临越来越大的区块存储以及较长的区块同步时间等问题.为了解决该问题,提出一种区块链节点存储优化方案.首先分析区块链恶意节点概率并计算每个分片中区块的数量;然后获取区块链节点数量以及分片中编号最大区块被恶意节点攻击的概率,计算出每个分片需要存储的副本数量.经实验分析得到:该优化方案减少了区块链节点约50%的区块存储,并减少节点约22%的同步区块时间.因此,该优化方案不仅减少了区块链的节点存储,还提高了新节点加入区块链的效率.

关键词: 区块链, 存储优化, 分片区块, 副本策略

Abstract: With the development of blockchain technology, the blocks in blockchain are keeping increasing, the new blockchain nodes are facing the problems of increasingly large storage and increasingly long time in block synchronization. In order to solve the problems, this paper proposes a blockchain node storage optimization scheme, which firstly calculates the number of blocks in each sharding by analyzing the probability of blockchain malicious nodes, then obtains the number of blockchain nodes and the probability of the block with the largest number being attacked by malicious node within the sharding, and at last, calculates the number of copies that need to be stored in each sharding. Experimental analysis shows that the optimization scheme reduces 50% blocks storage and 22% synchronization time in blockchain nodes, therefore, it can not only reduce the node storage in blockchain, but also improve the efficiency of new nodes joining the blockchain.

Key words: blockchain, storage optimization, sharding block, copy strategy

中图分类号: