Files
consensus/types/bag
zeekayandHanzo Dev 5ba681712e A sub-bag remembers what quorum it was counting against
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]>
2026-09-11 13:50:26 -07:00
..