US 12,019,652 B2
Method and device for synchronizing node data
Zhuguang Shao, Beijing (CN); Haibo Sun, Beijing (CN); Haiquan Huang, Beijing (CN); and Guangwei Zhao, Beijing (CN)
Assigned to Jingdong Technology Information Technology Co., Ltd., Beijing (CN)
Appl. No. 17/630,620
Filed by Jingdong Technology Information Technology Co., Ltd., Beijing (CN)
PCT Filed Mar. 13, 2020, PCT No. PCT/CN2020/079088
§ 371(c)(1), (2) Date Jan. 27, 2022,
PCT Pub. No. WO2021/051761, PCT Pub. Date Mar. 25, 2021.
Claims priority of application No. 201910894819.X (CN), filed on Sep. 20, 2019.
Prior Publication US 2022/0253458 A1, Aug. 11, 2022
Int. Cl. G06F 16/00 (2019.01); G06F 16/23 (2019.01); G06F 16/27 (2019.01)
CPC G06F 16/27 (2019.01) [G06F 16/2358 (2019.01)] 12 Claims
OG exemplary drawing
 
1. A method for synchronizing node data, the node comprising a backward node in a blockchain system, and the method comprising:
determining a target block height according to a local log file of the backward node for synchronizing blockchain data of the blockchain system, wherein the target block height is used to indicate a processing progress of the blockchain data, and the blockchain data comprises data and a block height corresponding to the data;
sending a data synchronization request to a target node based on the target block height, wherein the data synchronization request comprises the target block height; and
writing, in response to receiving update data sent by the target node, the update data into a local storage area of the backward node, wherein a block height corresponding to the update data is greater than the target block height,
wherein the sending a data synchronization request to a target node based on the target block height, comprises:
executing the local log file to generate blockchain data corresponding to the local log file, wherein a block height corresponding to the data in the blockchain data corresponding to the local log file is smaller than or equal to the target block height; and
sending, in response to determining that the executing of the local log file is completed, the data synchronization request to the target node.