-
Notifications
You must be signed in to change notification settings - Fork 784
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tally votes on conflicting block with no inactive votes (#2744)
Mostly applicable to tests, but consider this sequence of events: - An election gets created for a processed block - A vote arrives for a conflicting block; gets added to election, not inactive - The conflicting block gets processed Currently, `election::publish` calls `insert_inactive_votes_cache` but votes are not tallied since there was no inactive vote. This fixes the above situation by calling `confirm_if_quorum` if no votes were cached when a new conflicting block is inserted.
- Loading branch information
1 parent
7966efd
commit e31cdeb
Showing
3 changed files
with
38 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters