Blockchain consensus method and system, computer storage medium and electronic equipment

A blockchain and block technology, applied in the blockchain field, can solve the problem that the Tendermint algorithm does not support concurrent packaging blocks, etc., and achieve the effect of improving performance

Active Publication Date: 2020-08-18
BUBI BEIJING NETWORK TECH CO LTD
View PDF8 Cites 11 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0007] The Tendermint algorithm does not support concurrent packaging of blocks. Although the PBFT algorithm supports concurrent packaging of blocks, an additional Checkpoint mechanism is required to ensure that all replica nodes maintain the same progress

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Blockchain consensus method and system, computer storage medium and electronic equipment
  • Blockchain consensus method and system, computer storage medium and electronic equipment
  • Blockchain consensus method and system, computer storage medium and electronic equipment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0040] figure 1 It shows a schematic flowchart of the implementation of the blockchain consensus method in Embodiment 1 of the present application.

[0041] As shown in the figure, the blockchain consensus method includes:

[0042] Step 101. After the consensus of block BlockN enters the Confirm stage, the next block BlockN+1 enters the Propose stage;

[0043] Step 102: After BlockN enters the Commit stage, BlockN+1 enters the Confirm stage, and the next block BlockN+2 enters the Propose stage;

[0044] Step 103, BlockN, BlockN+1, BlockN+2 are executed in sequence;

[0045] In the concurrent consensus process, after the previous block completes the A phase, the next block starts the A phase; the A phase is the Propose phase, the Confirm phase, or the Commit phase;

[0046] Step 104, in the current round of concurrent consensus Consensus (B n ,B n+1 ,B n+2 ) is completed, the block BlockN+2 completed by the latest consensus is set as the stable block StableBlock; the next...

Embodiment 2

[0063] Based on the same inventive concept, the embodiment of the present application provides a blockchain consensus system. The principle of the device to solve technical problems is similar to that of a blockchain consensus method, and the repetition will not be repeated.

[0064] figure 2 A schematic structural diagram of the blockchain consensus system in Embodiment 2 of the present application is shown.

[0065] As shown in the figure, the blockchain consensus system includes: a consensus stage control module and a stable block setting module; wherein,

[0066] The consensus phase control module is used to control the consensus of the block BlockN to enter the Confirm phase, and the next block BlockN+1 enters the Propose phase; after BlockN enters the Commit phase, BlockN+1 enters the Confirm phase, and the next block BlockN +2 to enter the Propose stage; BlockN, BlockN+1, and BlockN+2 are executed in sequence; in the concurrent consensus process, after the previous bl...

Embodiment 3

[0076] Based on the same inventive concept, an embodiment of the present application further provides a computer storage medium, which will be described below.

[0077] The computer storage medium stores a computer program thereon, and when the computer program is executed by a processor, the steps of the block chain consensus method described in Embodiment 1 are implemented.

[0078] Using the computer storage medium provided in the embodiment of this application, while providing instant confirmation, the consensus process of multiple blocks is processed concurrently, which improves the performance of the consensus, and is efficient and stable; and each round of concurrent consensus Consensus (B n ,B n+1 ,B n+2 ) is completed, the stable block StableBlock is set, and the system enters the Stable state, which avoids the serial number inconsistency caused by the replica nodes after a long time of consensus, and requires an additional Checkpoint mechanism (a mechanism used to p...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a blockchain consensus method and system, a computer storage medium and electronic equipment, and the method comprises the steps: Block N + 1 enters a Propose stage after the consensus of a block Block N enters a Confirmware stage; after the Block N enters the Commit stage, the Block N + 1 enters the Confire stage, and the Block N + 2 enters the Propose stage; wherein the Block N, the Block N + 1 and the Block N + 2 are executed in sequence; in the concurrent consensus process, after the previous block completes a certain stage, the next block starts the stage; after the current round of concurrent consensus is completed, setting the block BlockN + 2 of which the latest consensus is completed as a stable block; wherein the next round of concurrent consensus starts from the stable block. Consensus flows of multiple blocks are processed concurrently, so that the consensus performance is improved, and an additional Checkpoint mechanism is not needed.

Description

technical field [0001] This application relates to block chain technology, specifically, to a block chain consensus method, system, computer storage medium, and electronic equipment. Background technique [0002] In the blockchain field, the consensus algorithm is a key part of the blockchain. Each node reaches a consensus through consensus, receives and approves the consistent block, and then executes the transaction contained in the block to generate a consistent new state; the consensus algorithm is Designed in a network with unreliable nodes, which usually include Byzantine nodes, that is, nodes may be malicious or malfunction, the consensus algorithm achieves reliability in such a network. A consensus algorithm that can tolerate Byzantine nodes is called a Byzantine fault-tolerant consensus algorithm. [0003] Due to its high performance and strong consistency, the Byzantine fault-tolerant consensus algorithm has gradually become the mainstream consensus algorithm in t...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): H04L29/08
CPCH04L67/10H04L67/1044H04L67/1095H04L67/1051H04L9/50Y02D10/00
Inventor 蒋海旷凯商松赵正涌朱建国刘建章
Owner BUBI BEIJING NETWORK TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products