作者投稿和查稿 主编审稿 专家审稿 编委审稿 远程编辑

计算机工程 ›› 2021, Vol. 47 ›› Issue (8): 14-21. doi: 10.19678/j.issn.1000-3428.0060847

• 热点与综述 • 上一篇    下一篇

改进Fast-HotStuff区块链共识算法

李启南, 薛志浩, 张学军   

  1. 兰州交通大学 电子与信息工程学院, 兰州 730070
  • 收稿日期:2021-02-09 修回日期:2021-04-24 发布日期:2021-05-07
  • 作者简介:李启南(1965-),男,副教授、硕士,主研方向为区块链安全;薛志浩,硕士研究生;张学军,教授、博士。
  • 基金资助:
    国家自然科学基金“位置服务中的用户隐私度量模型及保护方法研究”(61762058);教育部人文社会科学研究项目“人工智能作品著作权独创性的定量分析研究”(18YJAZH044)。

Improved Fast-HotStuff Blockchian Consensus Algorithm

LI Qinan, XUE Zhihao, ZHANG Xuejun   

  1. School of Electronic and Information Engineering, Lanzhou Jiaotong University, Lanzhou 730070, China
  • Received:2021-02-09 Revised:2021-04-24 Published:2021-05-07

摘要: Fast-HotStuff区块链共识算法采用两轮投票的共识过程,当主节点在第一轮投票后发生错误时,吞吐量将大幅降低,为解决该问题,提出一种改进的Fast-HotStuff算法。该算法引入一个新的区块扩展方式,在某一区块的共识过程中,当主节点在第一轮投票发生错误而导致视图更换时,副本节点将其投票消息传递至新的视图,新视图中的主节点收到足够多的投票消息,根据该区块进行扩展生成新区块并发起共识,以使更多区块上链并提高吞吐量。实验结果表明,当主节点在第一轮投票后发生错误时,HotStuff与Fast-HotStuff算法在节点数量为19时吞吐量降至3 500TPS以下,节点数量为61时降至1 500TPS以下,而改进算法的吞吐量在节点数量为19时高于6 500TPS,在节点数量为61时高于2 500TPS。

关键词: 区块链, 共识算法, HotStuff算法, Fast-HotStuff算法, 吞吐量

Abstract: The consensus process of the Fast-HotStuff blockchain consensus algorithm consists of two rounds of voting. When the leader node fails after the first round of voting, the throughput will be greatly reduced. To solve this problem, an improved Fast-HotStuff consensus algorithm is proposed, which introduces a new block generation strategy. In the consensus process of a block, if the leader node fails after the first round of voting and causes the view change, the replica node delivers its voting message to the new view. If the leader node in the new view receives enough voting messages, it expands the block of the previous view to generate a new block and initiates consensus, making more blocks added to the blockchain to improve the throughput. The experimental results show that when the leader node fails after the first round of voting, the throughput of HotStuff and Fast-HotStuff is reduced to less than 3 500TPS when the number of nodes is 19, and to less than 1 500TPS when the number of nodes is 61; while the throughput of the improved algorithm is more than 6 500TPS when the number of nodes is 19, and more than 2 500TPS when the number of nodes is 61.

Key words: blockchain, consensus algorithm, HotStuff algorithm, Fast-HotStuff algorithm, throughput

中图分类号: