US 11,902,446 B2
Method for recording data block on blockchain, leader accounting node, and storage medium
Mao Cai Li, Shenzhen (CN); Hu Lan, Shenzhen (CN); and Zong You Wang, Shenzhen (CN)
Assigned to TENCENT TECHNOLOGY (SHENZHEN) COMPANY LIMITED, Shenzhen (CN)
Filed by TENCENT TECHNOLOGY (SHENZHEN) COMPANY LIMITED, Guangdong (CN)
Filed on Apr. 13, 2021, as Appl. No. 17/229,352.
Application 17/229,352 is a continuation of application No. PCT/CN2020/075976, filed on Feb. 20, 2020.
Claims priority of application No. 201910130823.9 (CN), filed on Feb. 21, 2019.
Prior Publication US 2021/0234703 A1, Jul. 29, 2021
Int. Cl. H04L 9/32 (2006.01); G06F 21/60 (2013.01); H04L 9/30 (2006.01)
CPC H04L 9/3239 (2013.01) [G06F 21/602 (2013.01); H04L 9/30 (2013.01)] 18 Claims
OG exemplary drawing
 
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.