Transaction data processing method and apparatus, computer device and storage medium

US12536314B2 · US · B2

Patent metadata
FieldValue
Publication numberUS-12536314-B2
Application numberUS-202318314471-A
CountryUS
Kind codeB2
Filing dateMay 9, 2023
Priority dateSep 24, 2021
Publication dateJan 27, 2026
Grant dateJan 27, 2026

How to read this patent

A practical reading order for non-experts. Skip the full description unless you need deep technical detail.

  1. Title

    What the patent document calls the invention.

  2. Abstract

    A short plain-language summary of the technical disclosure.

  3. Assignees and inventors

    Who owns or filed the patent and who is credited as inventor.

  4. Key dates

    Filing, priority, publication, and grant dates set the timeline.

  5. First independent claim

    The legal scope of protection — read this for what is actually claimed.

  6. CPC / IPC classifications

    Technology tags used to group this patent with similar filings.

  7. Citations and related patents

    Prior art links and similar publications in this corpus.

Abstract

Official abstract text for this publication.

The present disclosures relates to methods and apparatus for managing a blockchain. The method includes executing an initial transaction to obtain an initial transaction execution record; adding the initial transaction execution record to a first transaction execution data set; adding the initial transaction to a first transaction pool; acquiring transaction data from the first transaction pool that contains the initial transaction, the transaction data comprising respective initial transaction execution record corresponding to each transaction in a transaction list containing the initial transaction from the first transaction pool; generating a proposal block based on the transaction list and the transaction data, the proposal block being subject to block consensus with a second consensus node in the blockchain network; and performing block consensus on the proposal block to obtain a block consensus result of the proposal block.

First claim

Opening claim text (preview).

What is claimed is: 1 . A method for managing a blockchain, the method being performed by a first consensus node in a blockchain network, and the method comprising: executing, in response to receiving an initial transaction, the initial transaction to obtain an initial transaction execution record corresponding to the initial transaction; adding the initial transaction execution record to a first transaction execution data set, the first transaction execution data set being used for recording the initial transaction execution record corresponding to each transaction received by the first consensus node; adding the initial transaction to a first transaction pool; acquiring transaction data from the first transaction pool that contains the initial transaction, the transaction data comprising respective initial transaction execution record corresponding to each transaction in a transaction list containing the initial transaction from the first transaction pool, the respective initial transaction corresponding to each transaction in the transaction list being acquired from the first transaction execution data set, wherein the transaction data comprises an initial transaction execution record corresponding to each transaction in the transaction list in the first transaction execution data set, a target transaction execution result corresponding to a verifiable transaction, a target transaction read-write set, and a first block height associated with a first block that is acquired by the first consensus node from the blockchain network in response to executing the verifiable transaction; generating a proposal block based on the transaction list and the transaction data, the proposal block being subject to block consensus with a second consensus node in the blockchain network; and performing the block consensus on the proposal block to obtain a block consensus result of the proposal block based on conflict detection, wherein the conflict detection comprises: determining that a transaction in the transaction list is the verifiable transaction and that a local transaction execution record corresponding to the verifiable transaction is local transaction data associated with the verifiable transaction, wherein the local transaction data comprises a local transaction execution result corresponding to the verifiable transaction, a local transaction read-write set, and a second block height associated with a second block that is acquired from the blockchain network by the second consensus node in response to executing the verifiable transaction; comparing the target transaction execution result with the local transaction execution result to obtain a first comparison result; based on the first comparison result indicating that the target transaction execution result is same as the local transaction result, comparing the first block height with the second block height to obtain a second comparison result; obtaining a local verification result corresponding to the proposal block based on the second comparison result; and determining a second consensus result corresponding to the proposal block based on the local verification result. 2 . The method according to claim 1 , wherein the executing comprises: acquiring, in response to receiving the initial transaction, an initial service contract for executing the initial transaction; reading an initial read data set corresponding to the initial transaction from the blockchain network based on the initial service contract; executing the initial transaction based on the initial read data set to obtain an initial transaction execution result corresponding to the initial transaction; writing the initial transaction execution result into an initial write data set corresponding to the initial transaction; generating an initial transaction read-write set corresponding to the initial transaction based on the initial read data set and the initial write data set; determining a first target block that has an initial maximum generation timestamp in response to executing the initial transaction, wherein a block height of the first target block is an initial block height; and determining the initial transaction execution record based on the initial transaction execution result, the initial transaction read-write set, and the initial block height. 3 . The method according to claim 1 , wherein generating the proposal block comprises: obtaining a Merkle tree root corresponding to a verifiable transaction based on a hash operation on the verifiable transaction and the transaction data, wherein a transaction in the transaction list is the verifiable transaction; acquiring a block having an initial maximum generation timestamp from the blockchain network to obtain a second target block; and generating the proposal block based on the verifiable transaction, the transaction data, the Merkle tree root, and a block hash value of the second target block. 4 . The method according to claim 1 , wherein performing the block consensus further comprises: determining the block consensus result of the proposal block based on the second consensus result. 5 . The method according to claim 4 , further comprising: based on the block consensus result indicating a successful consensus, determining that a consensus on the proposal block is reached; responsive to the consensus being reached, writing the proposal block into the blockchain as a third target block; and updating an account state version number corresponding to a transaction object associated with the transaction list. 6 . The method according to claim 1 , further comprising: performing validity verification on the initial transaction to obtain a validity verification result; based on the validity verification result indicates that the initial transaction is valid, determining that the initial transaction passes the validity verification; and broadcasting the initial transaction that passes the validity verification to the second consensus node, so that the second consensus node executes the initial transaction that passes the validity verification. 7 . The method according to claim 6 , wherein performing the validity verification comprises: acquiring transaction signature information of the initial transaction and a device public key of a terminal device that transmits the initial transaction, the transaction signature information being obtained after the terminal device signs the initial transaction through a device private key corresponding to the device public key; obtaining a transaction signature verification result by verifying the transaction signature information based on the device public key; obtaining a double spending verification result by verifying the initial transaction; and determining the validity verification result based on the transaction signature verification result and the double spending verification result. 8 . The method according to claim 7 , further comprising: based on the transaction signature verification result indicating a signature verification success and the double spending verification result indicating no double spending attack, determining that the initial transaction is valid. 9 . A method for managing a blockchain, the method performed by a second consensus node in a blockchain network, and the method comprising: receiving a proposal block broadcast by a first consensus node in the blockchain network, the proposal block being based on a transaction list and transaction data associated with the transaction list, wherein the transaction list is acquired by the first consensus node from a first transaction pool of the first consensus node, and the transaction list contains an initial transa

Assignees

Inventors

Classifications

  • G06F21/602Primary

    Providing cryptographic facilities or services · CPC title

  • to a system of files or objects, e.g. local or distributed file system or database · CPC title

  • Protecting data integrity, e.g. using checksums, certificates or signatures · CPC title

  • G06Q40/04Primary

    Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange · CPC title

Patent family

Related publications grouped by family.

External sources

Frequently asked questions

Answers are generated from the same data shown on this page.

What does patent US12536314B2 cover?
The present disclosures relates to methods and apparatus for managing a blockchain. The method includes executing an initial transaction to obtain an initial transaction execution record; adding the initial transaction execution record to a first transaction execution data set; adding the initial transaction to a first transaction pool; acquiring transaction data from the first transaction pool…
Who is the assignee on this patent?
Tencent Tech Shenzhen Co Ltd
What technology area does this patent fall under?
Primary CPC classification G06F21/602. Mapped technology areas include Physics.
When was this patent published?
Publication date Tue Jan 27 2026 00:00:00 GMT+0000 (Coordinated Universal Time) (B2). Legal status and post-grant events are not shown on this page.
What related patents are in patentsdb?
We list 12 related publications on this page (citations in our corpus or others sharing the same primary CPC).