| Consortium chain,as a form of blockchain,can be used to optimize the business process of traditional informatization applications.However,in the actual consortium chain application,it is found that the consortium chain based on the PBFT(Practical Byzantine Fault Tolerance)consensus algorithm cannot meet the performance requirements of the application scenario.The reason is that the PBFT consensus algorithm adopted by the consortium chain has insufficient performance..First of all,this paper conducts an in-depth study on the principle of the PBFT consensus algorithm,analyzes the shortcomings and defects of the algorithm in its core process,and proposes two optimization strategies under the premise of ensuring the security and activity of the algorithm;To solve the problem of the malicious node serving as the master node,the Naive Bayes classification model is introduced to classify the honesty of the consensus nodes,and the node with the highest honesty is independently selected as the master node according to the classification results,so as to reduce the occurrence of the non-honest master node leading the consensus process..On this basis,the idea of Hot Stuff and Tendermint consensus algorithms is introduced,and the view switching process of the PBFT consensus algorithm is integrated into the normal consensus process to reduce the complexity of view switching.Secondly,in view of the high complexity of the consensus protocol of the PBFT consensus algorithm,the BLS multi-signature scheme is introduced to improve the signature verification process of the consensus protocol,and on this basis,the communication structure of the whole network broadcast in the COMMIT stage is optimized to star communication The network structure reduces the overall complexity of the consensus protocol and improves the efficiency of consensus.Finally,the PBFT consensus algorithm before and after optimization is applied on the BFT-Smart Byzantine Fault Tolerance algorithm simulation platform for comparative experimental analysis.The experimental results show that the optimized PBFT consensus algorithm is better than the original PBFT in throughput,transaction delay and communication overhead.consensus algorithm.In summary,this paper provides new ideas and methods for the performance of consortium chain applications based on the PBFT consensus algorithm. |