US 11,899,689 B2
Blockchain-based data synchronization method, apparatus, and computer-readable storage medium
Huankun Huang, Shenzhen (CN); Zongyou Wang, Shenzhen (CN); Pan Liu, Shenzhen (CN); Jinsong Zhang, Shenzhen (CN); Gengliang Zhu, Shenzhen (CN); Yifang Shi, Shenzhen (CN); Zhiyong Liao, Shenzhen (CN); Kaiban Zhou, Shenzhen (CN); Qucheng Liu, Shenzhen (CN); Changqing Yang, Shenzhen (CN); and Hu Lan, Shenzhen (CN)
Assigned to TENCENT TECHNOLOGY (SHENZHEN) COMPANY LIMITED, Shenzhen (CN)
Filed by TENCENT TECHNOLOGY (SHENZHEN) COMPANY LIMITED, Shenzhen (CN)
Filed on Apr. 12, 2022, as Appl. No. 17/719,293.
Application 17/719,293 is a continuation of application No. PCT/CN2021/074977, filed on Feb. 3, 2021.
Claims priority of application No. 202010274759.4 (CN), filed on Apr. 9, 2020.
Prior Publication US 2022/0245173 A1, Aug. 4, 2022
Int. Cl. G06F 16/00 (2019.01); G06F 16/27 (2019.01)
CPC G06F 16/275 (2019.01) 20 Claims
OG exemplary drawing
 
1. A blockchain-based data synchronization method, executed by a first service node, the method comprising:
acquiring target block data of a target block having a minimum block height that is greater than a first local block height, wherein the first local block height is a maximum block height of local block data of the first service node before the first service node acquires the target block data, the target block being one of a plurality of blocks in a blockchain system, the plurality of blocks including information about one or more network transactions for verifying information validity and for generating a next block;
adding a maximum block height among block heights carried in the target block data to the maximum block height queue, the maximum block height queue comprising maximum block heights of block data pulled by the first service node in block data pulling operations;
determining a block height of missing block data according to a block height of the target block data and the first local block height, the block height of the missing block data being less than the minimum block height of the target block data and greater than the first local block height;
adding the block height of the missing block data to a missing block queue; and
requesting a target service node to synchronize the missing block data according to the block height of the missing block data in the missing block queue.