Patent ID: 11902446
Assignee: TENCENT TECHNOLOGY (SHENZHEN) COMPANY LIMITED
Field: Computer technology (Electrical engineering)
Classification: CPC G  H | IPC G  H

Claim 11:
12. A leader accounting node in a blockchain comprising a plurality of branch blockchains, wherein data blocks are recorded on the plurality of branch blockchains by a same group of accounting nodes, and the leader accounting node is selected from the group of accounting nodes, the leader accounting 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 data block generation code configured to cause at least one of the at least one processor to generate a target data block;
determination code configured to cause at least one of the at least one processor to determine whether the plurality of branch blockchains include a branch blockchain having at least one data block waiting to be added onto the blockchain and for which no consensus has been reached in the plurality of branch blockchains;
first branch blockchain selection code configured to cause at least one of the at least one processor to, based on a determination that first branch blockchains, of the plurality of branch blockchains, have no data block waiting to be added onto the blockchain and for which no consensus has been reached, select, from the first branch blockchains, a branch blockchain for recording the target data block;
digest value recordation code configured to cause at least one of the at least one processor to record a digest value of a previous data block recorded on the selected first branch blockchain and an identifier of the selected first branch blockchain in a block header of the target data block; and
consensus-reached and addition code configured to cause at least one of the at least one processor to transmit the target data block to other accounting nodes in the group of accounting nodes for reaching a consensus, the target data block being recorded on the selected first branch blockchain based on the consensus being reached,
wherein the consensus-reached and addition code is further configured to cause at least one of the at least one processor to transmit the target data block to the other accounting nodes in the group of accounting nodes; receive a verification result for the target data block from each of the other accounting nodes; and record the target data block on the selected first branch blockchain, and notifying the other accounting nodes in the group of accounting nodes based on a determination that a verification succeeds based on verification results received from the other accounting nodes.