The blockchain technology into the distributed data maintenance system is introduced and a contribution degree and data validity verification based consensus algorithm is proposed.In the algorithm,a random and verifiable leader election mechanism is designed according to contribution priority,ensuring the randomness and verifiability of the assignment of accounting rights.Furthermore,it introduces the density peak algorithm to reach the consensus on the correctness of packaged blocks.Finally,the proposed consensus algorithm is applied to the distributed deer farms for experimental comparison.The results validate the accuracy and efficiency of the density peak algorithm in the task of data validity testing.The analysis of block delay analysis and safety shows that the consensus algorithm satisfies the real-time requirements,consumes less energy and has strong disaster preparedness ability.
blockchainconsensus algorithmoutlier detectiondistributed data maintenancetrace back