基于一致性哈希算法的联盟链存储分配算法

STORAGE ALLOCATION ALGORITHM OF ALLIANCE CHAIN BASED ON CONSISTENT HASH ALGORITHM

  • 摘要: 联盟链中常采用每个节点都存储完整联盟链内容的存储方式,这种存储方式的存储代价较为高昂。为了降低联盟链中各个节点的存储代价,设计一种基于一致性哈希算法的存储分配算法,在保证数据丢失风险较低的情况下,降低联盟链上节点存储代价的目的。实现一个联盟链原型来对该算法进行验证,在验证结果中所提出的存储分配算法并未发生区块丢失,且在节点数较多时,其存储代价在未发生数据丢失的存储方式中最低。

     

    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.

     

/

返回文章
返回