Data processing method and apparatus based on node internal memory, device and medium

US12493876B2 · US · B2

Patent metadata
FieldValue
Publication numberUS-12493876-B2
Application numberUS-202218074020-A
CountryUS
Kind codeB2
Filing dateDec 2, 2022
Priority dateJan 18, 2021
Publication dateDec 9, 2025
Grant dateDec 9, 2025

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.

A data processing method and apparatus based on a node internal memory, a device and a computer readable storage medium are provided. The method includes: acquiring a data reading contract associated with a transaction in a first block from a chain reading cache of the node internal memory; invoking the data reading contract to acquire a write cache mapping table associated with the first block, and determining target read data associated with the transaction based on a first block cache of the first block in the write cache mapping table; and executing the transaction based on the target read data, storing target cached data, corresponding to a result of executing of the transaction, to the first block cache, and writing the first block into a bifurcated blockchain.

First claim

Opening claim text (preview).

What is claimed is: 1 . A data processing method, performed by a blockchain node in a target blockchain based on a node internal memory, comprising: acquiring a transaction in a first block, and acquiring a data reading contract, which a contract for reading data of the transaction, from a chain reading cache of the node internal memory, the first block being a block to be written into a bifurcated blockchain in the node internal memory; invoking the data reading contract to acquire a write cache mapping table, and determining target read data based on a first block cache of the first block in the write cache mapping table; and executing the transaction based on the target read data, storing target cached data, which is obtained as a result of executing of the transaction, to the first block cache, and writing the first block into the bifurcated blockchain. 2 . The method according to claim 1 , wherein the chain reading cache is established for the target blockchain in a cache space of the node internal memory, and the chain reading cache is configured to temporarily store hot-spot data that is frequently accessed; the hot-spot data comprising the data reading contract. 3 . The method according to claim 1 , further comprising: determining, as a target block, a block which, in the node internal memory, belongs to a longest chain on the bifurcated blockchain, and writing data in a target block cache of the target block into a blockchain database corresponding to the target blockchain; a block generation timestamp of the target block being earlier than a block generation timestamp of the first block. 4 . The method according to claim 1 , wherein the acquiring the transaction and the acquiring the data reading contract comprises: acquiring the first block containing the transaction, and generating, during performing consensus processing on the first block, a transaction processing instruction containing a hot-spot reading auxiliary parameter; the hot-spot reading auxiliary parameter comprising: a contract invoking address based on which a transaction contract of the transaction is executed; extracting the contract invoking address from the transaction processing instruction, and searching, based on the contract invoking address, a hot-spot contract matched with a contract name mapped to the contract invoking address from the chain reading cache of the node internal memory; the hot-spot contract being a transaction contract which is determined in the chain reading cache and has a cumulative access frequency greater than an access threshold; and acquiring, as the data reading contract, the hot-spot contract matched with the contract name. 5 . The method according to claim 1 , wherein the transaction comprises: a target transaction for asset transferring initiated from a first user to a second user; a contract function in the data reading contract comprising a first execution function and a second execution function; the first execution function configured to read first asset data in a user account address of the first user; the second execution function configured to read a user account address of the second user; the invoking the data reading contract and the determining the target read data comprises: acquiring the write cache mapping table based on the data reading contract being run in a virtual machine; acquiring, as the first block cache in the write cache mapping table, a write cache mapped to a first block hash value of the first block; and acquiring a historical execution result of a historical transaction stored in the first block cache; a transaction execution order of the historical transaction being earlier than a transaction execution order of the target transaction; searching the historical execution result of the first block cache for the user account address of the first user based on the first execution function in the data reading contract, and searching the historical execution result of the first block cache for the user account address of the second user based on the second execution function in the data reading contract; reading the first asset data of the first user from the user account address of the first user based on the user account address of the first user being found in the first block cache; and determining the read first asset data and the user account address of the second user to be asset reading data of the target transaction based on the user account address of the second user being found in the first block cache, and determining the target read data based on the asset reading data. 6 . The method according to claim 5 , wherein the bifurcated blockchain contains a second block; the second block being a previous block of the first block; the write cache mapping table containing a second block hash value of the second block; the method further comprises: based on the user account address of the first user being not found in the first block cache, determining a block header of the first block in the bifurcated blockchain based on the first block hash value mapped to the first block cache, and acquiring a father block hash value of the first block as the second block hash value of the second block in the block header of the first block; acquiring the write cache mapped to the second block hash value as a second block cache in the write cache mapping relationship table; a logical query level of the second block cache being lower than a logical query level of the first block cache; querying the user account address of the first user in the second block cache; and reading the first asset data of the first user from the user account address of the first user based on the user account address of the first user being queried in the second block cache. 7 . The method according to claim 6 , wherein the bifurcated blockchain contains a first branch chain, the first branch chain containing a third block and a fourth block, the third block being a previous block of the second block, and a block generation timestamp of the fourth block being earlier than a block generation timestamp of the third block; the write cache mapping table contains a third block hash value of the third block and a fourth block hash value of the fourth block, a logical query level of a third block cache mapped to the third block hash value being lower than the logical query level of the second block cache, and a logical query level of a fourth block cache mapped to the fourth block hash value being lower than the logical query level of the third block cache; and the method further comprises: querying the user account address of the first user in a blockchain database corresponding to the target blockchain based on the user account address of the first user being not found in the second block cache, the third block cache, the fourth block cache; and reading the first asset data of the first user from the user account address of the first user based on the user account address of the first user being queried in the blockchain database. 8 . The method according to claim 3 , wherein the acquiring the target block, and writing the data in the target block cache of the target block into the blockchain database comprises: acquiring a longest chain selection policy in the bifurcated blockchain, screening a block that satisfies the longest chain selection policy in the bifurcated blockchain based on a block height of the first block, and acquiring the block that satisfies the longest chain selection policy as the target block, the target block being a block cached in the node internal memory and historically written into the bifurcated blockchain; and writing the target block into the target blockchain based on a determination, in the node in

Assignees

Inventors

Classifications

  • using hash chains, e.g. blockchains or hash trees · CPC title

  • Database cache management · CPC title

  • Identity check for transactions · CPC title

  • Use of message hashing · CPC title

  • Hash tables · 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 US12493876B2 cover?
A data processing method and apparatus based on a node internal memory, a device and a computer readable storage medium are provided. The method includes: acquiring a data reading contract associated with a transaction in a first block from a chain reading cache of the node internal memory; invoking the data reading contract to acquire a write cache mapping table associated with the first block…
Who is the assignee on this patent?
Tencent Tech Shenzhen Co Ltd
What technology area does this patent fall under?
Primary CPC classification G06F16/24552. Mapped technology areas include Physics.
When was this patent published?
Publication date Tue Dec 09 2025 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 6 related publications on this page (citations in our corpus or others sharing the same primary CPC).