| CPC H04L 9/50 (2022.05) [H04L 9/3239 (2013.01)] | 20 Claims |

|
1. A node selection method performed by a computer device acting as a first node in a blockchain, the method comprising:
obtaining a plurality of node groups by grouping nodes in the blockchain according to their corresponding attribute weights in an order of the attribute weights;
selecting, among the plurality of node groups, a node group whose attribute weight meets a preset condition as a target node group, and selecting a preset quantity of candidate consensus nodes from the target node group;
storing a non-candidate consensus node from the target node group into another node group among the plurality of node groups that matches the target node group;
repeating the selecting and storing operations using the another node group as a new target node group until all of the plurality of node groups are screened;
broadcasting the candidate consensus nodes to one or more second nodes in the blockchain for verification; and
using a subset of the candidate consensus nodes as target consensus nodes of the blockchain when verification success information for the subset of the candidate consensus nodes from the second nodes is received within a preset time period.
|