A method for consensus mechanism based on contribution weight proof
A technology of contribution and consensus, applied in the field of blockchain, can solve problems such as wasting network/power resources, system delay, and high performance network environment requirements, and achieve the effect of ensuring smoothness and intelligent self-control
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0056] Such as figure 1 , in the embodiment of the application, the application provides a method for proving the consensus mechanism based on the contribution weight, the method includes steps:
[0057] S101: Determine whether the client node is a candidate node.
[0058] In this step, the candidate node has a certain parameter standard. At this time, the parameter of the client node is compared with this parameter standard. If the standard is met, the client node can be considered as a candidate node.
[0059] S102: If yes, construct the final contribution weight function from the three contribution dimensions of trust, time, and service and form a consensus node; where the expression of the final contribution weight function is:
[0060]Rv=votes*(Vtmax-Vtimestamp)+votes*(Bjmax- BekTime*10)+votes, Rv is the weight of the final contribution, votes is the number of votes of the client node, Vtmax is the The total timestamp, Vtimestamp is the timestamp difference of the initi...
Embodiment 2
[0076] Such as figure 2 , in the embodiment of the present application, the step of determining whether the client node is a candidate node in step S101 includes the steps of:
[0077] S201: Join the blockchain network to become an ordinary node;
[0078] S202: Pledge the digital resources of the system platform to become a candidate node;
[0079] S203: Conduct a confidence vote on the candidate node;
[0080] S204: Upload the vote value to the chain to obtain the V-KV table;
[0081] S205: Synchronize the V-KV table data to other nodes.
[0082] Among them, V means Votes, and KV means the Key-value database; the V-KV table is a data table that uses the KV database to record the corresponding votes of candidate nodes.
[0083] Further, performing a vote of confidence on the candidate nodes includes: each of the candidate nodes uses its own digital resources to perform a vote of confidence on the other candidate nodes.
[0084] In other embodiments, the performing a conf...
Embodiment 3
[0086] Such as image 3 , in the embodiment of this application, constructing the final contribution weight function from the three contribution dimensions of trust, time and service in step S102 and forming a consensus node includes steps:
[0087] S301: Obtain the time stamp difference Vtimestamp of the initial joining of the client node and BekTime, the number of failure times of the client node's packaged data, from the data link;
[0088] S302: Set the total time stamp difference Vtmax and the total number of service data packaging rounds Bjmax;
[0089] S303: Determine whether the joining time is outside the valid time domain;
[0090] S304: If yes, set the time weight Vt1=0;
[0091] S305: If not, calculate the time weight Vt1; wherein, Vt1=Vtmax-Vtimestamp;
[0092] S306: judging whether the number of service defaults exceeds the maximum range;
[0093] S307: If yes, set the quality weight Vb1=0;
[0094] S308: If not, calculate the quality weight Vb1; wherein, Vb...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


