# US 2026/0065265 A1 · Data processing method and apparatus based on node internal memory, device and medium

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2026/0065265 A1
- Document ID: US20260065265A1
- Status: Published application
- Kind: A1
- Application number: 19/385,357
- Filed: 2025-11-11
- Published: 2026-03-05
- Earliest claimed: 2021-01-18
- Assignees: Tencent Technology (Shenzhen) Company Limited
- Applicants: Tencent Technology (Shenzhen) Company Limited
- Inventors: Maocai LI; Zongyou WANG; Hu LAN; Gengliang ZHU; Pan LIU; Kaiban ZHOU; Yifang SHI; Huankun HUANG; Jinsong ZHANG; Li KONG; Zhiyong LIAO
- Web page: https://patentgrep.com/patent/US20260065265A1

## CPC

- G06Q 20/389: {Keeping log of transactions for guaranteeing non-repudiation of a transaction}
- G06F 16/2255: {Hash tables}
- G06F 16/27: Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
- G06F 21/64: Protecting data integrity, e.g. using checksums, certificates or signatures
- G06Q 20/3827: {Use of message hashing}
- G06Q 20/4014: {Identity check for transactions}
- H04L 9/50: {using hash chains, e.g. blockchains or hash trees}
- H04L 63/123: {received data contents, e.g. message integrity}
- H04L 67/568: Storing data temporarily at an intermediate stage, e.g. caching
- G06F 16/24552: {Database cache management}
- G06Q: INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

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.

## Claims

### Claim 1

A data processing method, performed by a blockchain node in a target blockchain based on a node internal memory, comprising:
based on a first block containing a transaction being broadcasted for performing consensus processing thereon, acquiring, from the node internal memory, a write cache mapping table, which maintains a one-to-one correspondence relationship between a block hash value of each block and a write cache of each block;
determining target read data based on a first block cache of a 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 a bifurcated blockchain.

### Claim 2 (depends on 1)

The method according to claim 1, further comprising:
acquiring a data reading contract from a chain reading cache, which is established for the target blockchain in a cache space of the node internal memory, wherein 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, which is a contract for reading data of the transaction.

### Claim 3 (depends on 2)

The method according to claim 2, 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.

### Claim 4 (depends on 1)

The method according to claim 1, wherein the acquiring the write cache mapping table comprises:
generating, during performing the 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 a 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 a data reading contract, which is a contract for reading data of the transaction, the hot-spot contract matched with the contract name, and invoking the data reading contract to acquire the write cache mapping table.

### Claim 5 (depends on 1)

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, and
wherein the acquiring the write cache mapping table and the determining the target read data comprises:
acquiring the write cache mapping table based on a data reading contract, which is a contract for reading data of the transaction, 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 a user account address of the first user based on a first execution function in the data reading contract, the first execution function being configured to read first asset data in the user account address of the first user, and searching the historical execution result of the first block cache for the user account address of the second user based on a second execution function in the data reading contract, the second execution function being configured to read a user account address of the second user;
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.

### Claim 6 (depends on 5)

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 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.

### Claim 7 (depends on 6)

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.

### Claim 8 (depends on 3)

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 internal memory, that the target block belongs to the longest chain on the bifurcated blockchain, and writing the data in the target block cache of the target block into the blockchain database corresponding to the target blockchain.

### Claim 9 (depends on 8)

The method according to claim 8, wherein the chain reading cache contains historical chain data comprising data that is successfully written into a historical block cache of the target blockchain at a historical time, the historical block cache being a write cache of a historical block in the bifurcated blockchain, and a block generation timestamp of the historical block being earlier than a block generation timestamp of the target block;
the method further comprises:
acquiring the data in the target block cache as target chain data on the target blockchain, writing the target chain data into the chain reading cache, and updating the historical chain data in the chain reading cache with the target chain data.

### Claim 10 (depends on 9)

The method according to claim 9, wherein a bifurcated block with a same block height as that of the target block exists on the bifurcated blockchain;
the method further comprises:
determining a target block height of the target block in the bifurcated blockchain, acquiring a hash relationship table from the node internal memory, and determining a target list column where the target block height is located in the hash relationship table;
acquiring a bifurcated block hash value of the bifurcated block from the target list column, and determining a bifurcated block cache corresponding to the bifurcated block hash value in the write cache mapping table; and
clearing away the target chain data in the target block cache, and clearing away data in the bifurcated block cache.

### Claim 11 (depends on 2)

The method according to claim 2, further comprising:
acquiring the data reading contract from a blockchain database associated with the node internal memory based on the data reading contract being not acquired in the chain reading cache.

### Claim 12 (depends on 3)

The method according to claim 3, further comprising:
writing the target cached data in the first block cache into the blockchain database corresponding to the target blockchain based on a determination, in the node internal memory, that the first block belongs to the longest chain on the bifurcated blockchain.

### Claim 13 (depends on 12)

The method according to claim 12, wherein the transaction comprises a first transaction and a second transaction, the target cached data comprises first cached data corresponding to the first transaction and second cached data corresponding to the second transaction; the second transaction being a previous transaction of the first transaction;
the writing the target cached data in the first block cache into the blockchain database corresponding to the target blockchain comprises:
writing the first cached data in the first block cache into the blockchain database corresponding to the target blockchain, and writing the second cached data in the first block cache into the blockchain database.

### Claim 14 (depends on 1)

The method according to claim 1, further comprising:
determining a block that satisfies a cache duration condition in the bifurcated blockchain to be a block to be destroyed based on monitoring that a cache capacity of the node internal memory reaches a cache threshold; and
performing block destruction processing on the block to be destroyed in the bifurcated blockchain.

### Claim 15

A data processing apparatus based on a node internal memory in a target blockchain, the apparatus being deployed on a blockchain node, comprising:
at least one memory configured to store program code; and
at least one processor configured to read the program code and operate as instructed by the program code, the program code including:
target read data determining code configured to cause the at least one processor to, based on a first block containing a transaction being broadcasted for performing consensus processing thereon, acquire, from the node internal memory, a write cache mapping table, which maintains a one-to-one correspondence relationship between a block hash value of each block and a write cache of each block, and determine target read data based on a first block cache of the first block in the write cache mapping table; and
transaction execution code configured to cause the at least one processor to execute the transaction based on the target read data, store target cached data, which is obtained as a result of executing of the transaction, to the first block cache, and write the first block into a bifurcated blockchain.

### Claim 16 (depends on 15)

The apparatus according to claim 15, wherein the program code further comprises:
longest chain determination code configured to cause the at least one processor to determine, as a target block, a block that, in the node internal memory, belongs to a longest chain on the bifurcated blockchain, and write 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 greater than the block generation timestamp of the first block.

### Claim 17 (depends on 15)

The apparatus according to claim 15, wherein the program code further comprises:
data reading contract acquiring code configured to acquire a chain reading cache, which 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 a data reading contract, which is a contract for reading data of the transaction.

### Claim 18 (depends on 15)

The apparatus according to claim 15, wherein the program code further comprises:
first block acquisition sub-code configured to cause the at least one processor to acquire the first block containing the transaction, and generate, during performing the 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;
extraction sub-code configured to cause the at least one processor to extract the contract invoking address from the transaction processing instruction, and search, based on the contract invoking address, a hot-spot contract matched with a contract name mapped to the contract invoking address from a 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
data reading contract acquisition sub-code configured to cause the at least one processor to acquire, as a data reading contract, which is a contract for reading data of the transaction, the hot-spot contract matched with the contract name.

### Claim 19 (depends on 1)

A computer device, comprising: a processor and a memory,
the processor being connected to the memory, the memory being configured to store a computer program, and the processor being configured to invoke the computer program, to cause the computer program to perform the method according to claim 1.

### Claim 20

A non-transitory computer-readable storage medium, storing a computer program, the computer program being loaded and executed by at least one processor to cause the at least one processor to perform:
based on a first block containing a transaction being broadcasted for performing consensus processing thereon, acquiring, from a node internal memory, a write cache mapping table, which maintains a one-to-one correspondence relationship between a block hash value of each block and a write cache of each block;
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 a bifurcated blockchain.
