p2p/rolemanager.go
Method DPOSRoleManager.loadBPVotes
has 5 return statements (exceeds 4 allowed). Open
Open
func (rm *DPOSRoleManager) loadBPVotes() (map[types.PeerID]voteRank, []types.PeerID, error) {
bpCount := len(rm.is.ConsensusAccessor().ConsensusInfo().Bps)
unionCap := bpCount * 2
result, err := rm.actor.CallRequest(message.ChainSvc,
&message.GetElected{Id: types.OpvoteBP.ID(), N: uint32(bpCount * 2)}, getVotesMessageTimeout)