mirror of
https://github.com/luxfi/consensus.git
synced 2026-09-24 00:26:58 +00:00
Filter and Split built their result bags at threshold zero. Every count clears zero, so Threshold() on a derived bag named every choice in it, including choices one vote short in the bag it came from. A caller that split a tally and then asked which choices had reached quorum was told all of them. Clone already carried the threshold; the other two now do too. The package had no tests at all, which is how a vote tally came to answer a question about quorum with the most permissive answer available. Co-authored-by: Hanzo Dev <[email protected]>