Skip to content

Commit

Permalink
fix(data_structures): remove misleading "0 votes:" log
Browse files Browse the repository at this point in the history
  • Loading branch information
tmpolaczyk committed Jun 9, 2021
1 parent 283368d commit dcf198d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions data_structures/src/superblock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,11 @@ impl SuperBlockVotesMempool {
.unwrap();
let pos = v.iter().position(|x| *x == old_sbv).unwrap();
v.swap_remove(pos);

if v.is_empty() {
self.votes_on_each_superblock
.remove(&old_sbv.superblock_hash);
}
}
self.penalized_identities.insert(pkh);
}
Expand Down

0 comments on commit dcf198d

Please sign in to comment.