Commit 2131dbf
committed
CRITICAL: Complete consensus system rewrite for real inter-node communication
- Rewrite execute_commit_phase: each node generates only OWN commit, not fake commits for others
- Rewrite execute_reveal_phase: each node reveals only OWN data, not fake reveals for others
- Fix consensus message handling: use existing NetworkMessage and P2P infrastructure
- Fix HTTP API timeouts: increase to 30s with 3-retry logic for real network reliability
- Fix macroblock coordination: only consensus leader creates macroblock, others wait
- Fix type compatibility: proper Vec<u8> <-> String conversion for reveal_data
- Use existing broadcast_consensus_commit/reveal functions for real P2P communication
- Integrate with existing /api/v1/p2p/message endpoint for inter-node messaging
Real Byzantine consensus: each node participates independently via HTTP API1 parent 1f1ac80 commit 2131dbf
2 files changed
Lines changed: 286 additions & 181 deletions
0 commit comments