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

Parallel chain consensus method and device and storage medium

A parachain and consensus technology, applied in the field of blockchain, can solve the problems of waste, the failure of consensus on the block1 of the parachain block, and the failure of the main chain to be informed, so as to reduce waste and avoid storing useless redundant information.

Active Publication Date: 2019-12-03
HANGZHOU FUZAMEI TECH CO LTD
View PDF7 Cites 6 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] In the above-mentioned parachain consensus mechanism, when some authorized nodes of the parachain do not normally carry out the parachain consensus, resulting in the failure of the parachain consensus to be completed normally, the authorized account group of the parachain needs to be reconfigured. The change of the authorized account group caused the problem that the parachain consensus could not be completed
For example, the first parachain is configured with 6 authorized nodes A-F. When the consensus transaction sent by the authorized nodes A-D for the block1 of the parachain is successfully recorded on the main chain, but the authorized nodes E and F cannot pay the full amount of handling fees, etc. When the consensus transaction is unsuccessfully sent, the parallel chain block block1 cannot achieve a successful consensus (4 / 6 does not exceed 2 / 3); when the first parallel chain passes any method such as super management account approval or authorized account voting, the original authorized node E and When F exits the authorized node account group, the main chain cannot learn the change of the authorized node account group of the first parachain (from A-F to A-D), resulting in the block1 of the parallel chain still unable to reach consensus
[0006] Furthermore, when the above-mentioned abnormality occurs in the parallel chain consensus, if each normal operation or newly joined authorized node sends a transaction to the main chain to trigger the parallel chain consensus, more handling fees will be wasted

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
  • Parallel chain consensus method and device and storage medium
  • Parallel chain consensus method and device and storage medium
  • Parallel chain consensus method and device and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0032] The application 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 related inventions, rather than to limit the invention. It should also be noted that, for ease of description, only parts related to the invention are shown in the drawings.

[0033] It should be noted that, in the case of no conflict, the embodiments in the present application and the features in the embodiments can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and embodiments.

[0034] figure 1 It is a flowchart of a parachain consensus method provided by an embodiment of the present invention.

[0035] Such as figure 1 As shown, in this embodiment, the present invention provides a parachain consensus method suitable for authorized nodes of a parachain, including:

[0...

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 provides a parallel chain consensus method and device and a storage medium, and the method comprises the steps: storing the parallel chain authorization account group information of theblock height of a block when the parallel chain consensus succeeds; generating a first consensus transaction according to the block execution result and the real-time parallel chain authorization account group information, sending the first consensus transaction to the main chain node so as to update the parallel chain authorization account group, and performing parallel chain consensus accordingto the updated parallel chain authorization account group; monitoring whether consensus of the parallel chain block succeeds or not before timeout; and if not, judging whether the number of the authorized accounts is reduced, if so, judging whether to resend the consensus transaction according to a preset rule, and if so, generating a second consensus transaction according to the third parallel chain authorized account group information and sending the second consensus transaction to the main chain node so as to update the parallel chain authorized account group and perform parallel chain consensus according to the updated parallel chain authorized account group. According to the invention, the normal operation of the parallel chain consensus when the authorized node account group is changed is ensured, and the waste of service fees is reduced.

Description

technical field [0001] This application relates to the technical field of blockchain, and specifically relates to a parachain consensus method, device and storage medium. Background technique [0002] In the parallel chain consensus mechanism proposed by the applicant, the parallel chain nodes synchronize the parallel chain transactions from the main chain to generate parallel chain blocks, and each authorized node of the parallel chain is packaged according to the execution results of the parallel chain blocks of the current node (respectively in Consensus transactions executed by the main chain and parallel chains and sent to the main chain nodes; [0003] The main chain nodes record each consensus transaction on the main chain for voting. If the pre-configured conditions are met (for example, more than 2 / 3 of the votes are consistent, etc.), the consensus of the parallel chain block is successful, so that the parallel chain can be completed with the help of the main chain...

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/08G06Q40/04
CPCH04L67/10H04L67/1097H04L67/1095G06Q40/04H04L9/50
Inventor 马登极王志文吴思进
Owner HANGZHOU FUZAMEI TECH CO LTD
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