Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

A blockchain consensus mechanism based on raft algorithm

A blockchain and consensus technology, applied in computing, instruments, data exchange networks, etc., can solve problems such as poor fault tolerance, inability to dynamically join and exit consensus nodes, and insufficient supervision of consensus nodes, so as to improve consensus efficiency and shorten transaction confirmation Time, improve the effect of system fault tolerance

Active Publication Date: 2020-09-15
上海钜真金融信息服务有限公司
View PDF1 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0013] 1) The election consensus node does not refer to the block height of the node and cannot be effectively combined with the blockchain;
[0014] 2) Elect a consensus node and keep accounting by this node, which has poor fault tolerance;
[0015] 3) At present, many schemes have insufficient supervision of consensus nodes, and cannot realize the dynamic joining and exit of consensus nodes

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
  • A blockchain consensus mechanism based on raft algorithm
  • A blockchain consensus mechanism based on raft algorithm
  • A blockchain consensus mechanism based on raft algorithm

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0042] Hereinafter, the present invention will be further described in detail through specific embodiments in conjunction with the drawings.

[0043] Definition of terms used in this application: Block chain: originated from the underlying technology of Bitcoin. It is a kind of chained data structure that combines data blocks in sequence in a chronological order. And the non-tamperable and non-forgeable guaranteed by cryptography, to achieve a decentralized distributed ledger. Public blockchain: A blockchain network open to any individual or organization. The entry and exit of consensus nodes is completely free. Consortium block chain: A blockchain network that is only open to specific individuals or organizations. The entry and exit of consensus nodes is strictly controlled. Smart contract: a piece of code (smart contract) running on the blockchain, it can maintain its own state, control its own assets, and respond to received external information or assets. Consensus mechan...

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 relates to a Raft-algorithm-based block chain consensus mechanism. The mechanism comprises: consensus node information of a block chain is stored into the block chain and an initial state of a consensus node is set to be a follower state; on the basis of a Raft algorithm, a consensus node of an initial leader state is selected by combining the height of the block, wherein the consensus node of the leader state is used for recording a transaction event and generating a new block; and at the end of the term of the consensus node of the leader state, a consensus node of a leader state is selected again. Because the height of the synchronous block is considered for reference during the consensus node selection process of the leader state, the consensus efficiency can be improved and the transaction confirmation time can be shortened; and because the consensus node is selected again at the end of the term, the system fault tolerance can be improved. Moreover, on the basis of uniqueness of the consensus node selection of the leader state, each block has final consistency, thereby avoiding block chain furcation. Meanwhile, dynamic entrance and exit of a consensus node can be realized based on a management mechanism of the consensus node by an intelligent contract.

Description

Technical field [0001] The invention relates to the technical field of blockchain consensus mechanisms, and specifically relates to a blockchain consensus mechanism based on the Raft algorithm. Background technique [0002] At present, the consensus mechanisms widely used in the industry are the PoW algorithm (including its extended algorithms PoS and DPoS), the PBFT algorithm, the Paxos algorithm and the Raft algorithm. [0003] PoW algorithm (Proof Of Work): Proof of Work, used to confirm that a certain node has done a certain amount of work. It is an economic countermeasure against denial of service attacks and other service abuses. It requires the initiator to perform a certain amount of calculation, which means that it needs to consume a certain amount of computer time. [0004] PBFT algorithm (Practical Byzantine Fault Tolerance): PBFT means a practical Byzantine fault-tolerant algorithm, which solves the problem of low efficiency of the original Byzantine fault-tolerant algo...

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 Patents(China)
IPC IPC(8): H04L12/24H04L29/08G06Q40/00
CPCG06Q40/12H04L41/30H04L67/10
Inventor 李升林陈晋飞姜海涛寮岩
Owner 上海钜真金融信息服务有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products