US 12,170,737 B2
Block processing method and apparatus, and blockchain-based data query method and apparatus
Xin Li, Shenzhen (CN)
Assigned to TENCENT TECHNOLOGY (SHENZHEN) COMPANY LIMITED, Shenzhen (CN)
Filed by TENCENT TECHNOLOGY (SHENZHEN) COMPANY LIMITED, Guangdong (CN)
Filed on Feb. 18, 2022, as Appl. No. 17/675,511.
Application 17/675,511 is a continuation of application No. PCT/CN2020/126458, filed on Nov. 4, 2020.
Claims priority of application No. 202010099538.8 (CN), filed on Feb. 18, 2020.
Prior Publication US 2022/0171776 A1, Jun. 2, 2022
Int. Cl. H04L 9/32 (2006.01); G06Q 20/36 (2012.01); H04L 9/00 (2022.01)
CPC H04L 9/3297 (2013.01) [G06Q 20/36 (2013.01); H04L 9/50 (2022.05)] 17 Claims
OG exemplary drawing
 
1. A block processing method, comprising:
obtaining, based on generation of a block, a time interval stored in a root block of a target blockchain;
based on a transaction occurrence time of a transaction included in the block being within the time interval, determining, as a target subchain, a subchain meeting a target condition from a first target quantity of subchains connected to the root block,
wherein the determining comprises randomly determining a first subchain with a minimum quantity of the blocks as the target subchain when a plurality of subchains have the minimum quantity of the blocks; and
adding the block to the target subchain of the target blockchain based on a consensus being reached on the block.