Files
aitbc/apps
aitbc 4b001a95d2
Some checks failed
Blockchain Synchronization Verification / sync-verification (push) Failing after 3s
Integration Tests / test-service-integration (push) Failing after 10s
Multi-Node Blockchain Health Monitoring / health-check (push) Successful in 3s
P2P Network Verification / p2p-verification (push) Successful in 3s
Python Tests / test-python (push) Successful in 11s
Security Scanning / security-scan (push) Successful in 28s
Implement adaptive sync and hybrid block generation
- Add adaptive sync with tiered batch sizing for initial sync
  - Initial sync (>10K blocks): 500-1000 batch size, 2s poll, 10s bulk interval
  - Large gap (1K-10K blocks): 200-500 batch size, 3s poll, 30s bulk interval
  - Medium gap (500-1K blocks): 100-200 batch size, 5s poll, 60s bulk interval
  - Reduces 2.9M block sync from 10 days to ~8 hours

- Add hybrid block generation with heartbeat
  - Modes: always, mempool-only, hybrid (default)
  - Skip empty blocks in hybrid/mempool-only modes
  - Force heartbeat block after 60s idle for consensus safety
  - Adaptive loop timing: hybrid checks every 2.5s for heartbeat detection

- Add metrics for sync and block generation behavior
  - sync_empty_blocks_skipped_total
  - sync_heartbeat_blocks_forced_total
  - sync_time_since_last_block_seconds
  - sync_mode, sync_gap_size, sync_batch_size
  - sync_bulk_duration_seconds, sync_blocks_per_second
2026-04-23 10:59:24 +02:00
..
```
2026-03-08 12:16:01 +01:00