fix: ensure NewNodeVotes defaults to 0

This commit is contained in:
Derrick Hammer 2024-01-09 06:53:51 -05:00
parent 45ffa1a98a
commit f9e94ce205
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 4 additions and 1 deletions

View File

@ -11,7 +11,10 @@ type NodeVotesImpl struct {
}
func NewNodeVotes() interfaces.NodeVotes {
return &NodeVotesImpl{}
return &NodeVotesImpl{
good: 0,
bad: 0,
}
}
func (n *NodeVotesImpl) Good() int {