Files
consensus/utils
zeekay 98ef442663 Add Phase 2-3 poll edge case tests and clean up orphan code
Phase 2 tests (5 critical edge cases):
- TestRecordPollSplitVote: Split votes don't change preference
- TestRecordPollWhenFinalized: Safe no-op after finalization
- TestRecordPollInvalidVote: Unknown block IDs ignored
- TestRecordPollChangePreferredChain: Preference switching works
- TestRecordPollWithDefaultParams: Production parameters validated

Phase 3 tests (2 advanced scenarios):
- TestRecordPollDivergedVoting: Network converges from divergence
- TestRecordPollRegressionIndegree: No double-counting in votes

Infrastructure:
- Convert bag.Bag to generic type [T comparable] for flexibility
- Promote gonum from indirect to direct dependency
- Clean up orphan directories (voting_backup, voting_fpc, test-nnary)
- Remove orphan test files (test_binary, test_nnary_direct.go)

All 16 new tests passing (9 Phase 1 + 7 Phase 2-3)
Total chain engine coverage: Status tracking + block addition + poll edges
2025-11-11 10:21:06 -08:00
..
2025-11-06 10:32:37 -08:00
2025-11-06 10:32:37 -08:00