Commit Graph
3 Commits
Author SHA1 Message Date
zeekay 14bbfe3847 test: fix integration test finalization logic
Fixed SimpleConsensus.Vote() to set finalized=true even when block
is already accepted. Previously, only the first node to vote would
finalize, causing tests to fail with only 1/N nodes finalized.

Changes:
- Modified Vote() to separate block acceptance from finalization
- Now sets finalized=true for any valid block, regardless of status
- Added network-wide finalization check with 50% threshold
- Implemented parallel polling (10% of nodes per round) for faster convergence

Results:
- TestRandomizedConsistency: PASS (1 round convergence)
- TestPropertyBasedConsensus: ALL PASS
- TestConsensusAtScale: PASS (up to 1000 nodes)
- TestChaosConsensus: PASS

Outstanding: TestNetworkScalability and TestDAGConsensus use different
simulation framework and require separate investigation.
2025-11-10 21:34:43 -08:00
zeekay 371c50d38e Clean up generated files 2025-11-06 04:06:32 -08:00
zeekay fee6b3564f Update and re-organize 2025-09-24 04:01:37 -05:00