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.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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...
PUM
![No PUM](https://static-eureka-patsnap-com.libproxy1.nus.edu.sg/ssr/23.2.0/_nuxt/noPUMSmall.5c5f49c7.png)
Abstract
Description
Claims
Application Information
![application no application](https://static-eureka-patsnap-com.libproxy1.nus.edu.sg/ssr/23.2.0/_nuxt/application.06fe782c.png)
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com