Improvement of DPoS Consensus Mechanism Based on RTM Trust Model
In order to solve the problem of"swing node"of malicious behavior and"wealth concentration"caused by unequal distribution of rights and interests in traditional DPoS consensus algorithm,an improved R-DPoS consensus algorithm based on RTM trust model is proposed.Firstly,the algorithm classifies the network nodes according to the information propagation direction and transaction relationship between the nodes,and calculates the direct trust value,recommended trust value and global trust value of each node respectively under the condition of considering the influence factors such as time attenuation factor.Secondly,the concept of node wobble value is introduced.According to the calculated wobble value,the change of the value before and after the adjacent consensus rounds is compared,and then the consensus rounds penalty restriction measures are made for the wobble nodes in different degrees.Finally,in the process of witness node voting,the balance of negative votes is added,and a new set of election evaluation criteria for ac-counting nodes is constructed by using the comprehensive credit value obtained in the previous stage.Witness nodes are dynamically selected according to the value of node evaluation obtained after each round of calculation,and a consensus process is completed.The simulation results show that compared with the original DPoS consensus algorithm and the improved consensus algorithm based on reward mechanism and credit mechanism,the initiative of node election to become a witness node is increased by 24%and 18%,the fairness is increased by 15%and 10%,and the probability of node evil is reduced by 9%and 15%.