CPC H04L 9/32 (2013.01) [H04L 9/0894 (2013.01); H04L 9/50 (2022.05); H04L 2209/463 (2013.01)] | 20 Claims |
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.
|