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

Claim 0:
1. A method for recording a data block on a blockchain, the blockchain comprising a plurality of branch blockchains, recording of data blocks on the plurality of branch blockchains being performed by a same group of accounting nodes, the method being performed by a leader accounting node in the group of accounting nodes, the method comprising:
generating a target data block;
determining 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;
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, selecting, from the first branch blockchains, a branch blockchain for recording the target data block;
recording 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
transmitting 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 transmitting the target data block to the other accounting nodes comprises:
transmitting the target data block to the other accounting nodes in the group of accounting nodes;
receiving a verification result for the target data block from each of the other accounting nodes; and
recording 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.