基于一致性哈希算法的联盟链存储分配算法
STORAGE ALLOCATION ALGORITHM OF ALLIANCE CHAIN BASED ON CONSISTENT HASH ALGORITHM
曹佳音 1白汉利 2王雅文 1宫云战1
作者信息
- 1. 北京邮电大学计算机学院 北京 100876
- 2. 中国空气动力研究与发展中心计算空气动力研究所 四川 绵阳 621000
- 折叠
摘要
联盟链中常采用每个节点都存储完整联盟链内容的存储方式,这种存储方式的存储代价较为高昂.为了降低联盟链中各个节点的存储代价,设计一种基于一致性哈希算法的存储分配算法,在保证数据丢失风险较低的情况下,降低联盟链上节点存储代价的目的.实现一个联盟链原型来对该算法进行验证,在验证结果中所提出的存储分配算法并未发生区块丢失,且在节点数较多时,其存储代价在未发生数据丢失的存储方式中最低.
Abstract
In alliance chain,it is usually that each node stores the content of the whole alliance chain,which is expensive.In order to reduce the storage cost of each node in the alliance chain,this paper designs a storage allocation algorithm based on consistent Hash algorithm,which can reduce the storage cost of nodes in the alliance chain while ensuring the low risk of data loss.This paper implemented a federation chain prototype to verify the algorithm.In the verification results,the proposed storage allocation algorithm has no block loss,and when the number of nodes is large,its storage cost is the lowest among the storage methods without data loss.
关键词
联盟链/区块链/存储分配算法Key words
Alliance chain/Blockchain/Storage allocation algorithm引用本文复制引用
出版年
2024