| CPC G06Q 20/401 (2013.01) [H04L 9/50 (2022.05); G06Q 20/3825 (2013.01)] | 15 Claims |

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