diff --git a/service/vote.go b/service/vote.go index 1696ee6..1748288 100644 --- a/service/vote.go +++ b/service/vote.go @@ -11,7 +11,10 @@ type NodeVotesImpl struct { } func NewNodeVotes() interfaces.NodeVotes { - return &NodeVotesImpl{} + return &NodeVotesImpl{ + good: 0, + bad: 0, + } } func (n *NodeVotesImpl) Good() int {