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

Method and apparatus for grouping transactions in blockchain

a blockchain and transaction technology, applied in the field of blockchain technologies, can solve problems such as restricting the throughput rate of the whole system, and achieve the effect of maximizing the performance of multi-cpu

Active Publication Date: 2022-03-03
ALIPAY (HANGZHOU) INFORMATION TECH CO LTD
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Benefits of technology

[0004]Implementations of the present specification provide a more effective solution for grouping transactions in a blockchain, which overcomes deficiencies in the existing technologies.
[0019]In the solution for grouping transactions in a blockchain according to the implementations of the specification, multiple threads can concurrently change a belonging array and an associative array in a lock-free way, so that multiple transactions can be grouped based on the associative array. In this process, no search for a complex data structure is involved, and the full advantage of multi-CPU performance can be taken.

Problems solved by technology

When there are tens of thousands of transactions to be grouped, hundreds of milliseconds are needed for the grouping algorithm, which greatly restricts the throughput rate of the whole system.

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
  • Method and apparatus for grouping transactions in blockchain
  • Method and apparatus for grouping transactions in blockchain
  • Method and apparatus for grouping transactions in blockchain

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0033]The following describes the implementations of the present specification with reference to the accompanying drawings.

[0034]FIG. 1 is a schematic structural diagram illustrating a Fabric blockchain. The Fabric blockchain is an enterprise-oriented consortium blockchain. As shown in FIG. 1, the Fabric blockchain includes the following multiple types of nodes: a client node 11, peers 12, an orderer 13, etc. The peers 12 further include an endorser 121, a committer 122, etc. The Fabric blockchain includes multiple channels. Each channel has closed ledger data and a chain code of the channel. The chain code is a smart contract in the Fabric blockchain. The peer 12 can choose which channels to join, and the peer 12 can join the channel after the identity of the peer 12 is verified by a peer existing in the channel.

[0035]As shown in FIG. 1, the client node 11 can initiate a transaction proposal to a certain channel in the Fabric blockchain, so that the client node 11 sends a transacti...

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

Implementations of the present specification provide a method and an apparatus for grouping transactions in a blockchain. The method includes: obtaining a first transaction in multiple transactions; obtaining a first variable accessed in the first transaction; reading a first value of a first belonging variable corresponding to the first variable; reading a first value of a first associated variable corresponding to the first transaction; if the first value of the first belonging variable is a numbering value of a second transaction in the multiple transactions, recording an association relationship between the first transaction and the second transaction in the associative array by performing an atomic comparative change operation on an atomic variable in an associative array; and grouping the multiple transactions based on the associative array.

Description

BACKGROUNDTechnical Field[0001]Implementations of the present specification relate to the field of blockchain technologies, and more specifically, to a method and an apparatus for grouping transactions in a blockchain.Description of the Related Art[0002]The blockchain technology is also referred to as a distributed ledger technology, and all the full nodes in the blockchain have full and consistent data. To ensure that all the full nodes have consistent data, concurrent processing is performed on multiple transactions in the blockchain on the premise that there is no data dependency between the concurrently executed transactions. For example, in a Hyperledger Fabric blockchain (hereinafter referred to as a Fabric blockchain), an endorser pre-executes each transaction to generate a read-write set of each transaction. The read-write set includes a variable read or written in the process of pre-executing the transaction. When a committer in the Fabric blockchain performs validation on ...

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(United States)
IPC IPC(8): G06Q20/38
CPCG06Q20/38215G06Q20/389G06Q20/3827G06Q40/04G06F21/64G06F16/901G06Q40/00H04L63/123G06F16/2379G06F16/285G06F16/137G06F16/2365
Inventor LIU, XIAOJIAN
Owner ALIPAY (HANGZHOU) INFORMATION 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