| CPC H04L 9/50 (2022.05) | 18 Claims |

|
1. A data processing method based on a blockchain, wherein the blockchain comprises at least one block and is located in a blockchain network comprising a witness subnet and a consensus subnet, the witness subnet contains at least one service node, and the consensus subnet contains at least two consensus clusters; a consensus cluster comprises multiple accounting nodes, and one accounting node is elected in its own consensus cluster as a representative node; representative nodes of the at least two consensus clusters form a consensus committee of the blockchain; the method is implemented by a first representative node of the representative nodes in the consensus committee; and the method comprises:
obtaining bidding result information of a next block to be on-chained, the bidding result information indicating a second representative node having a proposal right of the next block and bidding information for the next block submitted by the second representative node; and
generating on-chaining indication information of the next block of the blockchain according to the bidding result information, the on-chaining indication information indicating a type of a next block to be on-chained;
obtaining a target block waiting for consensus in the blockchain network, the target block being generated according to cross-chain service data; and
adding the target block to the blockchain as the next block in response to that the on-chaining indication information indicates that the next block is of a coexclusive type, wherein a block of the coexclusive type is configured to store data of an independent cross-chain service,
wherein:
the bidding information comprises waiting time and an amount of bidding resources, the waiting time being a duration waited by the second representative node from a time of requesting the proposal right to a time of obtaining the proposal right; and
the bidding result information is generated after the consensus committee performs consensus check on the bidding information based on the waiting time and the amount of bidding resources in the bidding information, and the consensus check of the bidding information is successful.
|