Consensus algorithm and system of block chain

A blockchain and consensus technology, applied in the blockchain field, can solve the problems of increasing network bandwidth pressure, block and transaction congestion, low efficiency, etc., and achieve the effect of improving TPS and eliminating time delay

Active Publication Date: 2020-09-29
上海朝夕网络技术有限公司
View PDF7 Cites 8 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, these consensus algorithms face the common problem of low efficiency, which seriously hinders the actual implementation of blockchain applications
For example, in the consensus algorithms represented by PoW and PoS, the data blocks of all nodes maintain strict consistency, which causes the nodes to wait for the latest synchronization before broadcasting to other nodes after packaging or receiving the blocks themselves. Increased pressure on network bandwidth, reduced transmission efficiency, and led to a series of problems such as block and transaction congestion
Compared with the 100,000-level and million-level TPS (Transactions Per Second, the number of transactions processed per second) in practical applications, these inefficient consensus algorithms cannot meet the needs of the rapid development of blockchain technology.

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
  • Consensus algorithm and system of block chain
  • Consensus algorithm and system of block chain
  • Consensus algorithm and system of block chain

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0039] In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention. In addition, the technical features involved in the various embodiments of the present invention described below can be combined with each other as long as they do not constitute a conflict with each other.

[0040] like figure 1 As shown, according to the different tasks undertaken by the blockchain nodes, the blockchain nodes are divided into: client, boot node (BootNode), core node and candidate node.

[0041] The client is responsible for generating transaction data and sending the transaction data to the core node connected to the client. Transaction data can be: bill summary, copyright inform...

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 consensus method and system of a block chain. The method comprises the following steps: in a block output period, P1, receiving transaction data to be consensus, recording acore node receiving the transaction data as a core node Node1, and recording other core nodes as Node2 to Noden; p2, reading the state value S1 of the current core node Node1 and the state values S2-Sn of the other core nodes Node2-Noden; p3, calculating and obtaining a state root hash value Rs; p4, calculating and obtaining a transaction root hash value Rt; p5, generating a block and broadcastingthe block to other core nodes Node2 to Nodem for verification; and P6, receiving verification results of other core nodes Node2-Node on the block, and if the verification results meet a preset consensus condition, writing the block into a local chain by the Node1. Through the steps, mutual winding of the states of the core nodes in different periods is achieved, the relative sequence of the states is further confirmed, and the throughput of the block chain is effectively improved in the mode that mining is conducted on the nodes at the same time.

Description

technical field [0001] The invention belongs to the technical field of block chain, and more specifically, relates to a consensus algorithm and system of block chain. Background technique [0002] Blockchain is a decentralized distributed ledger system that can be used to register and issue digital assets, property rights certificates, points, etc., and transfer, pay and trade in a peer-to-peer manner. Compared with the traditional centralized system, the blockchain system has the advantages of being open, transparent, tamper-resistant, and preventing multiple payments, and does not rely on any trusted third party. Due to the high network delay in the peer-to-peer network, the order of events observed by each node at the same moment cannot be completely consistent. Therefore, the blockchain system needs to design a mechanism for consensus on the sequence of transactions that occur within a certain period of time. This algorithm for reaching a consensus on the sequence of 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): G06F21/64G06Q20/38H04L9/06
CPCG06F21/64H04L9/0643G06Q20/3825G06Q20/3827Y02D10/00
Inventor 陆学前闻泽中李汝佳程训鹤
Owner 上海朝夕网络技术有限公司
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