Skip to content

Retain Configurable Proof History #80

@freesig

Description

@freesig

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:

  1. Insert proof at location
  2. 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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No fields configured for Task.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions