【摘要】：As one of the underlying technologies of the blockchain, the consensus algorithm plays a vital role in ensuring security and efficiency. As a consensus algorithm for the private blockchain, Raft has better performance than the rest of the consensus algorithms, and it does not cause problems such as the concentrated hashing power, resource waste and fork. However, Raft can only be used in a non-byzantine environment with a small network size. In order to enable Raft to be used in a large-scale network with a certain number of byzantine nodes, this paper combines Raft and credit model to propose a Raft blockchain consensus algorithm based on credit model CRaft. In the node credit evaluation phase, RBF-based support vector machine is used as the anomaly detection method, and the node credit evaluation model is constructed. Then the Trust Nodes List(TNL) mechanism is introduced to make the consensus phase in a creditable network environment. Finally, the common node is synchronized to the consensus node to update the blockchain of the entire network. Experiments show that CRaft has better throughput and lower latency than the commonly used consortium blockchain consensus algorithm PBFT(Practical Byzantine Fault Tolerance).