Retain Configurable Proof History
Overview
Keep a configurable number of proofs in the database to ensure overlap with current state location.
Implementation
Configuration
Add configuration parameter:
proof_retention_count: usize
Database Storage
- Store proofs with their locations
- Maintain the most recent
proof_retention_count proofs
- Prune older proofs beyond the retention limit
Pruning
When a new proof is added:
- Insert proof at location
- If proof count exceeds
proof_retention_count, delete oldest proof
This ensures proofs overlap with current state location and prevents proofs from always being ahead of state.
Retain Configurable Proof History
Overview
Keep a configurable number of proofs in the database to ensure overlap with current state location.
Implementation
Configuration
Add configuration parameter:
Database Storage
proof_retention_countproofsPruning
When a new proof is added:
proof_retention_count, delete oldest proofThis ensures proofs overlap with current state location and prevents proofs from always being ahead of state.