Chain operations for Moloch audit chain.
This crate provides chain management without networking:
- Chain state machine (apply/revert blocks)
- Validator registry (PoA consensus)
- Mempool (pending event queue)
- Block producer (timer-based production)
Architecture
┌─────────────────────────────────────────────────────────┐
│ BlockProducer │
│ (Timer-based block creation from mempool events) │
└─────────────────────────────────────────────────────────┘
│
▼
┌─────────────────────────────────────────────────────────┐
│ Mempool │
│ (Pending events: priority queue, dedup, expiration) │
└─────────────────────────────────────────────────────────┘
│
▼
┌─────────────────────────────────────────────────────────┐
│ ChainState │
│ (Head, height, validator set, apply/revert blocks) │
└─────────────────────────────────────────────────────────┘
│
▼
┌─────────────────────────────────────────────────────────┐
│ ValidatorSet │
│ (Authorized sealers, round-robin leader selection) │
└─────────────────────────────────────────────────────────┘