fix: save the node votes

This commit is contained in:
Derrick Hammer 2024-01-09 15:51:02 -05:00
parent 646f69e920
commit 1e94f378f3
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 5 additions and 0 deletions

View File

@ -502,6 +502,11 @@ func (p *P2PImpl) vote(nodeId *encoding.NodeId, upvote bool) error {
votes.Downvote()
}
err = p.saveNodeVotes(nodeId, votes)
if err != nil {
return err
}
return nil
}
func (p *P2PImpl) NodeId() *encoding.NodeId {