OSDN Git Service
(root)
/
bytom
/
vapor.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2541f76
)
fix review
v0.1_num_of_consensus_node
author
mars
<mars@bytom.io>
Mon, 3 Jun 2019 07:26:43 +0000
(15:26 +0800)
committer
mars
<mars@bytom.io>
Mon, 3 Jun 2019 07:26:43 +0000
(15:26 +0800)
protocol/consensus_node_manager.go
patch
|
blob
|
history
diff --git
a/protocol/consensus_node_manager.go
b/protocol/consensus_node_manager.go
index
874331b
..
282923c
100644
(file)
--- a/
protocol/consensus_node_manager.go
+++ b/
protocol/consensus_node_manager.go
@@
-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
}