High-speed consensus method based on block chain
A block chain and consensus technology, applied in the field of block chain, can solve the problems of block chain performance improvement, consumption of large computer computing resources and network resources, etc., to reduce computer computing power and network resource costs, improve Consensus performance, the effect of increasing the number of concurrent transactions
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0059] Such as figure 1 As shown, the master node puts the transaction into the cache pool; the master node polls the slave nodes and selects the optimal slave node; the master node generates a cache pool access token and sends it to the optimal slave node; the optimal slave node Rely on the cache pool access token to search for transactions in the cache pool; the optimal secondary node downloads the transaction, performs transaction summary calculation, transaction summary comparison, and comparison result broadcast; after the optimal secondary node completes the work, it replies to the primary node, The master node deletes the corresponding transaction in the cache pool; then proceed to the next round of consensus.
Embodiment 2
[0061] Such as figure 2 with image 3 As shown, the reconfiguration method in the Prepare phase includes a polling operation flow and a verification operation flow in sequence.
[0062] The polling operation process includes the following steps:
[0063] S1: The master node puts the transaction to be verified into the cache pool of the local memory, and all transactions in the cache pool are sorted by Seq number, and only the master node has the permission to write and delete transactions in the cache pool;
[0064] S2: The master node confirms whether the values of N, ni, hi, and Tmax have been updated, if yes, update, if not, go to the next step;
[0065] S3: The master node updates q according to real-time messages i , j;
[0066] S4: Master node calculates i=jMOD(N-1);
[0067] S5: master node computing
[0068] S6: Master node compares tq i and if tq i less than Then jump to S9, if tq i greater or equal to Then proceed to S7;
[0069] S7: master node ...
Embodiment 3
[0086] In this embodiment, assume that the following entities exist in the blockchain network:
[0087] Client C
[0088] Blockchain consensus node n 1 , n 2 , n 3 , n 4
[0089] Other known conditions required by the master node:
[0090] Seq=1501
[0091] N-1=3
[0092] q 1 =10,q 2 =100,q 3 =1000
[0093] h 1 =10000, h 2=20000, h 3 =30000
[0094] j-5
[0095] T max =10000
[0096] The consensus steps for patent improvement of the present invention are as follows:
[0097] Blockchain client C sends to master node n 1 A transaction "Transaction" is uploaded, "Transaction" contains , m is the transaction content, D(m) is the transaction summary, and Sign is the digital signature of client C.
[0098] master node n main Give the transaction "Transaction" number Seq 1501, and add the number to the transaction header "Seq1501+Transaction"
[0099] The master node puts the transaction "Seq 1501+Transaction" into the cache pool in the order of Seq numbers.
...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


