In the face of a large number of consensus nodes in the food alliance blockchain network,due to the low efficiency of the traditional practical Byzantine fault tolerance(PBFT)consensus algorithm,communication energy consumption is too high,which greatly increases the risk of information leakage and data fraud.To solve the above problems,this paper proposes a PBFT optimization consensus algo-rithm based on agglomerative hierarchical clustering(AHC).Firstly,the AHC algorithm is used to clas-sify and cluster all the consensus nodes.Secondly,PBFT consensus occurs in all clusters in parallel.Fi-nally,the message agreement is reached through the consensus of the master nodes in the cluster.The experimental results show that the improved algorithm can effectively reduce the energy cost and im-prove consensus efficiency and throughput.
关键词
信息安全/区块链/实用拜占庭容错(PBFT)/凝聚型层次聚类(AHC)
Key words
information security/blockchain/practical Byzantine fault tolerance(PBFT)/agglomerative hierarchical clustering(AHC)