Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Do not use expose election dummy vote in non election related unit te…
…sts (#4098) * Do not use expose election dummy vote in non election related unit tests Election objects always have one dummy vote in them, they never have zero votes. However that is an implementation detail of the election class, which should not be leaked outside. By using votes_with_weights, we filter out that dummy votes, which always has zero weight and we do not need to leak out its existence. It also makes those unit tests easier to reason about. The dummy vote is often a confusing complication. * Fixed race condition where genesis private key was given too early
- Loading branch information