Block generation method, device and storage medium

A block and blockchain technology, applied in the blockchain field, can solve the problems of ineffective use of multi-core CPU, slow consensus process, low transaction throughput, etc., to improve CPU utilization, ensure utilization, and speed up consensus effect of the process

Active Publication Date: 2021-10-01
HANGZHOU FUZAMEI TECH CO LTD
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, at present, most blockchains check transactions and confirm blocks serially, which cannot effectively utilize the advantages of multi-core CPUs, resulting in slow consensus process and low transaction throughput.

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 generation method, device and storage medium
  • Block generation method, device and storage medium
  • Block generation method, device and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0025] 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.

[0026] 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.

[0027] figure 1 It is an example diagram of a block generation scene in an embodiment of the present invention. like figure 1 As shown, in this embodiment, node A receives 5 transactions tx1 180 , tx2 180 , tx3 200 , tx4, tx5, node A adds the received transactions to different transaction que...

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 present invention provides a block generation method, device and storage medium, the method comprising: judging whether the first transaction is the first type of transaction executed at the specified block height according to whether the first specified block height information of the first transaction is empty Or the second type of transaction without specifying the block height: if the first transaction is the first type of transaction, verify the correctness of the first transaction, and add the verified correct first transaction to the specified block height information according to the first specified block height The first preprocessing transaction queue of the first block height; if the first transaction is the second type of transaction, verify the correctness of the first transaction, and add the verified correct first transaction to the real-time transaction queue; according to the first block Each pre-processing transaction in the high-level second pre-processing transaction queue and several real-time transactions in the real-time transaction queue generate the first block. This application processes the transaction check and block confirmation in parallel to improve CPU utilization, thereby speeding up the consensus process and improving transaction throughput.

Description

technical field [0001] The present application relates to the technical field of block chain, and specifically relates to a block generation method, device and storage medium. Background technique [0002] At present, the CPUs of nodes are mostly multi-core, which can process tasks concurrently. However, most current blockchains check transactions and confirm blocks serially, which cannot effectively take advantage of multi-core CPUs, resulting in slow consensus processes and low transaction throughput. Contents of the invention [0003] In view of the above-mentioned defects or deficiencies in the prior art, it is desired to provide a block generation method, device and storage medium for improving CPU utilization. [0004] In a first aspect, the present invention provides a block generation method, comprising: [0005] S12: According to whether the first specified block height information of the first transaction is empty, it is judged whether the first transaction is ...

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): G06F9/50G06F9/54G06Q40/04
CPCG06F9/5016G06F9/5027G06F9/5077G06F9/542G06F2209/5011G06Q40/04
Inventor 吴思进王志文
Owner HANGZHOU FUZAMEI 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