Gulshan Yadav
|
e2a6a10bee
|
feat(dag): implement DAGKnight adaptive consensus protocol
Phase 13 Milestone 1 - DAGKnight Protocol Implementation:
- Add LatencyTracker for network propagation delay measurement
- Rolling statistics (mean, stddev, P95, P99)
- Anticone growth rate tracking
- Configurable sample window (1000 samples)
- Implement DagKnightManager extending GHOSTDAG
- Adaptive k parameter based on observed network latency
- Probabilistic confirmation time estimation
- Confidence levels (Low/Medium/High/VeryHigh)
- ConfirmationStatus with depth and finality tracking
- Add BlockRateConfig for throughput scaling
- Standard: 10 BPS (100ms block time) - current
- Enhanced: 32 BPS (31ms block time) - target
- Maximum: 100 BPS (10ms block time) - stretch goal
- Auto-adjusted merge/finality/pruning depths per config
- Utility functions for network analysis
- calculate_optimal_k() for k parameter optimization
- estimate_throughput() for TPS projection
Based on DAGKnight paper (2022) and Kaspa 2025 roadmap.
|
2026-01-19 09:46:50 +05:30 |
|