US 11,792,006 B2
Method and apparatus for electing representative node device, computer device, and storage medium
Rui Guo, Shenzhen (CN); Maocai Li, Shenzhen (CN); Zongyou Wang, Shenzhen (CN); Haitao Tu, Shenzhen (CN); Li Kong, Shenzhen (CN); Kaiban Zhou, Shenzhen (CN); Changqing Yang, Shenzhen (CN); Nan Wang, Shenzhen (CN); Yong Ding, Shenzhen (CN); and Yifang Shi, Shenzhen (CN)
Assigned to TENCENT TECHNOLOGY (SHENZHEN) COMPANY LIMITED, Shenzhen (CN)
Filed by Tencent Technology (Shenzhen) Company Limited, Shenzhen (CN)
Filed on Oct. 1, 2020, as Appl. No. 17/61,383.
Application 17/061,383 is a continuation of application No. PCT/CN2019/104141, filed on Sep. 3, 2019.
Claims priority of application No. 201811046267.9 (CN), filed on Sep. 7, 2018.
Prior Publication US 2021/0021419 A1, Jan. 21, 2021
Int. Cl. H04L 9/32 (2006.01); H04L 9/08 (2006.01); H04L 9/00 (2022.01)
CPC H04L 9/32 (2013.01) [H04L 9/0894 (2013.01); H04L 9/50 (2022.05); H04L 2209/463 (2013.01)] 20 Claims
OG exemplary drawing
 
1. A method for electing a representative node device, performed by a blockchain system including multiple node devices, each node device having a processor and memory storing computer-readable instructions to be executed by the node device, the method comprising:
obtaining voting transaction data from the multiple node devices, the voting transaction data being used for voting for one or more node devices of the blockchain system as representative node devices;
generating and storing the voting transaction data into a target blockchain of the blockchain system when a plurality of the multiple node devices of the blockchain system verify the voting transaction data by consensus;
in accordance with a quantity of blocks in the target blockchain generated using the voting transaction data being at least a preset quantity, determining an election result according to quantities of votes of the multiple node devices determined from the voting transaction data, the election result identifying a subset of node devices from the multiple node devices in the blockchain system; and
setting an operating state of the subset of node devices to be representative node devices, the representative node devices being configured to generate new blocks for the target blockchain and perform verification on the new blocks by consensus.