Block chain transaction data processing method and device, electronic device and medium

A technology of transaction data and processing methods, applied in the field of blockchain, can solve problems such as low efficiency and inability to make good use of equipment for multitasking and parallel processing, and achieve the effect of increasing processing efficiency and reducing processing time.

Active Publication Date: 2019-05-21
SHENZHEN THUNDER NETWORK TECH +1
View PDF18 Cites 29 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The purpose of this application is to provide a processing method, device, electronic device, and computer-readable storage medium for blockchain transaction data, aiming at solving the problem of pr...

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 transaction data processing method and device, electronic device and medium
  • Block chain transaction data processing method and device, electronic device and medium
  • Block chain transaction data processing method and device, electronic device and medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0063] See figure 1 , figure 1 A flow chart of a method for processing blockchain transaction data provided in the embodiment of the present application, which includes the following steps:

[0064] S101: Obtain each transaction data in the block to be consensus;

[0065] All transaction data that occurred in the blockchain network within a certain period of time are stored in the pending consensus block. The transaction data in the pending consensus block will be added to the original block as a new block after the consensus is completed. the end of the block chain. It should be noted that each piece of transaction data will be arranged sequentially according to the time of occurrence, and the arrangement is usually based on the timestamp attached to the transaction data.

[0066] S102: Simultaneously process a preset number of transaction data in a parallel manner, and mark transaction data in which transaction conflicts occur during parallel processing as conflicting tra...

Embodiment 2

[0083] See Figure 4 , Figure 4 The flow chart of another block chain transaction data processing method provided by the embodiment of this application. On the basis of the first embodiment, this embodiment provides a method of grouping by a small number of threads. The specific way of performing parallel processing includes the following steps:

[0084] S301: Obtain each transaction data in the block to be agreed upon;

[0085] S302: Distribute all the transaction data in the block to be consensus to multiple processing queues continuously in time order;

[0086]For the convenience of understanding, here is an example: Suppose there are 100 transaction data arranged in chronological order in the block to be agreed upon, assuming that there are 10 processing queues, that is, each processing queue is allocated 10 transaction data, and in The allocation of transaction data to each processing queue is continuous, not random, that is to say, the top 10 will be allocated to the...

Embodiment 3

[0093] See image 3 , image 3 A structural block diagram of a block chain transaction data processing device provided by the embodiment of the present application, the device may include:

[0094] The transaction data acquisition unit 100 to be processed is used to acquire each transaction data in the block to be agreed upon;

[0095] The parallel processing unit 200 is configured to simultaneously process a preset number of transaction data in a parallel manner, and mark transaction data in which transaction conflicts occur during parallel processing as conflicting transaction data;

[0096] The conflicting transaction data serial processing unit 300 is configured to sequentially process each piece of conflicting transaction data arranged in the original time order in a serial manner.

[0097] Wherein, the parallel processing unit 200 may include:

[0098] One-time all parallel processing sub-units are used to simultaneously process each transaction data in the block to b...

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 block chain transaction data processing method. The method comprises the following steps: firstly, trying to simultaneously process transaction data of a to-be-consented block in a parallel manner; due to the fact that transaction conflicts occur when not all the transaction data are processed in parallel, all the transaction data without the transaction conflicts can beprocessed in a high-efficiency mode of parallel processing, and then only the conflict transaction data with the transaction needs to be processed in a serial mode again. Compared with the prior art in which the transaction conflicts are executed in a serial mode no matter whether the transaction conflicts exist or not, the technical scheme provided by the invention can utilize the multi-task parallel processing capacity of the equipment to the maximum extent on the basis that the processing result is not influenced, the processing time consumption is reduced, and the processing efficiency isimproved. The invention further discloses a block chain transaction data processing device, an electronic device and a computer readable storage medium which have the above beneficial effects.

Description

technical field [0001] The present application relates to the technical field of blockchain, and in particular to a method, device, electronic equipment and computer-readable storage medium for processing blockchain transaction data. Background technique [0002] Due to the decentralized and non-tamperable characteristics of blockchain technology, it is very suitable for important data with a large amount of data but small data volume. For example, in the Bitcoin network, blockchain technology is used to record Bitcoin transactions. Ledger of data. [0003] Due to the particularity of transaction data: coming and going, expenditure and income, the account status of each user will also change over time. Therefore, in order to prevent transaction conflicts, it needs to be recorded in the blockchain network. Each transaction is processed in a serial manner in the order in which the transactions occur. [0004] However, nowadays, the devices that are the constituent nodes 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
IPC IPC(8): G06Q20/38
CPCY02D10/00
Inventor 陆路
Owner SHENZHEN THUNDER NETWORK TECH
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