mirror of
https://github.com/luxfi/consensus.git
synced 2026-09-24 00:26:58 +00:00
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