var nodes []*consensusNode
for pubkey, voteNum := range voteResult.NumOfVote {
var nodes []*consensusNode
for pubkey, voteNum := range voteResult.NumOfVote {
}
// In principle, there is no need to sort all voting nodes.
// if there is a performance problem, consider the optimization later.
}
// In principle, there is no need to sort all voting nodes.
// if there is a performance problem, consider the optimization later.
func (c *consensusNodeManager) getVoteResult(voteResultMap map[uint64]*state.VoteResult, blockHeight uint64) (*state.VoteResult, error) {
var err error
// This round of voting prepares for the next round
func (c *consensusNodeManager) getVoteResult(voteResultMap map[uint64]*state.VoteResult, blockHeight uint64) (*state.VoteResult, error) {
var err error
// This round of voting prepares for the next round