Block chain consensus and execution parallel processing method and device and electronic equipment

A parallel processing and blockchain technology, applied in data processing applications, instruments, finance, etc., can solve problems such as slowing down consensus efficiency

Active Publication Date: 2020-01-07
杭州秘猿科技有限公司
View PDF10 Cites 25 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

During the entire consensus process, these two serial block execution processes (execute transactions first, then consensus results) slow down consensus efficiency

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
  • Block chain consensus and execution parallel processing method and device and electronic equipment
  • Block chain consensus and execution parallel processing method and device and electronic equipment
  • Block chain consensus and execution parallel processing method and device and electronic equipment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0034] In order to enable those skilled in the art to better understand the technical solutions in this specification, the technical solutions in the embodiments of this specification will be clearly and completely described below in conjunction with the drawings in the embodiments of this specification. Obviously, the described The embodiments are only some of the embodiments in this specification, not all of them. Based on the embodiments in this specification, all other embodiments obtained by persons of ordinary skill in the art without creative efforts shall fall within the protection scope of this specification.

[0035] A current improvement method is: when the Leader node packs a block, it does not immediately execute the transaction in the block, but first implements a consensus on the block, and the consensus node executes the transaction after the block reaches a consensus. The block generates a new state; the Leader node at the next height will carry the new state ...

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 embodiment of the invention discloses a block chain consensus and execution parallel processing method and device and electronic equipment, and the method comprises the steps: carrying out the batch packaging of transactions, and carrying out the consensus of a transaction set obtained through packaging; after the consensus is reached, adding the sequenced transaction set to a preset buffer queue; sequentially executing transactions in each transaction set in the preset buffer queue; and after all transactions in any transaction set are executed, returning an execution result of the executed transaction set as a latest state. Therefore, in the mode, when one block is processed, parallel processing of transaction consensus and execution and parallel processing of transaction consensus and execution of adjacent blocks can be achieved, and it is guaranteed that in the whole consensus process, transaction consensus and execution are executed all the time, and the situation of parallelprocessing exists. Therefore, the consensus efficiency is improved.

Description

technical field [0001] This description relates to the technical field of computer software, in particular to a parallel processing method, device and electronic equipment for block chain consensus and execution. Background technique [0002] In blockchain technology, consensus can include at least two layers of semantics: 1. Complete transaction sequencing; 2. Reach consensus on the latest state. For blockchains that adopt the account model, transactions only contain events, and the state is generated after the transaction is executed. In order to achieve consensus on the latest state, a common method is: the consensus node executes all transactions in the block before packaging the block, and saves the calculated latest state in the block header of the block to be packaged. After the block containing the latest state reaches consensus, the transactions in the block are sequenced, and the latest state also completes the consensus. Any other consensus node can replay the 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): G06Q40/04
CPCG06Q40/04
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