Sign Gossip Vote Messages

This commit is contained in:
Sagar Dhawan
2019-03-11 16:43:30 -07:00
committed by Grimes
parent da77789881
commit 61f950a60c
3 changed files with 41 additions and 20 deletions

View File

@ -282,7 +282,7 @@ impl ClusterInfo {
pub fn push_vote(&mut self, vote: Transaction) {
let now = timestamp();
let vote = Vote::new(vote, now);
let vote = Vote::new(&self.id(), vote, now);
let mut entry = CrdsValue::Vote(vote);
entry.sign(&self.keypair);
self.gossip.process_push_message(&[entry], now);