fix: save the node votes
This commit is contained in:
parent
646f69e920
commit
1e94f378f3
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue