US 12,282,921 B2
Blockchain-based data processing method and apparatus, device, readable storage medium and computer program product
Yifang Shi, Shenzhen (CN)
Assigned to TENCENT TECHNOLOGY (SHENZHEN) COMPANY LIMITED, Shenzhen (CN)
Filed by Tencent Technology (Shenzhen) Company Limited, Shenzhen (CN)
Filed on Apr. 20, 2023, as Appl. No. 18/137,336.
Application 18/137,336 is a continuation of application No. PCT/CN2022/099549, filed on Jun. 17, 2022.
Claims priority of application No. 202110901263.X (CN), filed on Aug. 6, 2021.
Prior Publication US 2023/0259938 A1, Aug. 17, 2023
Int. Cl. G06Q 20/40 (2012.01); G06Q 20/38 (2012.01); H04L 9/00 (2022.01)
CPC G06Q 20/401 (2013.01) [H04L 9/50 (2022.05); G06Q 20/3825 (2013.01)] 15 Claims
OG exemplary drawing
 
1. A method for processing blockchain-based transactions performed by a computer device acting as a consensus node of a blockchain network, the method comprising:
determining, by the consensus node, a plurality of transactions having a same group identifier in a transaction pool as group transaction data, wherein the plurality of transactions are submitted to the transaction pool by a plurality of terminals within a predefined time period, each transaction having a unique execution sequence identifier;
packetizing each of the group transaction data into a proposal block, and executing each of the group transaction data in the proposal block according to its corresponding execution sequence identifier to obtain a corresponding transaction execution result;
when at least one transaction execution result comprises a transaction execution failure result, resetting each of the group transaction data with the transaction execution failure result, and updating the proposal block according to the transaction execution failure result corresponding to each of the group transaction data to obtain a target proposal block, further including:
generating a result Merkle tree according to the transaction execution failure result corresponding to each of the group transaction data, the result Merkle tree comprising a root hash value; and
adding the root hash value to a block header of the proposal block to obtain the target proposal block; and
when the target proposal block is passed by consensus, performing accounting on the target proposal block and the transaction execution failure result corresponding to each of the group transaction data; and
notifying each of the plurality of terminals of a transaction execution failure result associated with a transaction submitted by the terminal.