OSDN Git Service

fix review v0.1_num_of_consensus_node
authormars <mars@bytom.io>
Mon, 3 Jun 2019 07:26:43 +0000 (15:26 +0800)
committermars <mars@bytom.io>
Mon, 3 Jun 2019 07:26:43 +0000 (15:26 +0800)
protocol/consensus_node_manager.go

index 874331b..282923c 100644 (file)
@@ -61,11 +61,7 @@ func (c *consensusNodeManager) isBlocker(prevBlockHash *bc.Hash, pubKey string,
                return false, err
        }
 
-       consensusNode, exist := consensusNodeMap[pubKey]
-       if !exist {
-               return false, errNotFoundConsensusNode
-       }
-
+       consensusNode := consensusNodeMap[pubKey]
        if consensusNode == nil {
                return false, nil
        }