fix: ensure NewNodeVotes defaults to 0
This commit is contained in:
parent
45ffa1a98a
commit
f9e94ce205
|
@ -11,7 +11,10 @@ type NodeVotesImpl struct {
|
|||
}
|
||||
|
||||
func NewNodeVotes() interfaces.NodeVotes {
|
||||
return &NodeVotesImpl{}
|
||||
return &NodeVotesImpl{
|
||||
good: 0,
|
||||
bad: 0,
|
||||
}
|
||||
}
|
||||
|
||||
func (n *NodeVotesImpl) Good() int {
|
||||
|
|
Loading…
Reference in New Issue