Description
While bump_market_ttl (Line 235) protects market data, other critical governance records like PendingUpgrade (Issue 32) and Guardian records might not have explicit TTL management called during their lifecycle. This puts long-running governance processes at risk of expiring and becoming unrecoverable during periods of inactivity.
Requirements and context
- Implement automated TTL bumping for all persistent governance data.
- Ensure critical protocol configuration never expires.
Suggested execution
- Fork the repo and create a branch:
git checkout -b fix/issue-85-gov-ttl-management
- Audit all persistent storage usage.
Implementation changes
- Update
governance.rs to include extend_ttl calls for all critical keys.
Test and commit
- Verify that a pending upgrade remains accessible even after 3 months of network inactivity.
Example commit message
fix: ensure consistent TTL management for all governance and protocol state
Guidelines
- Data durability.
- Timeframe: 24 hours.
Description
While
bump_market_ttl(Line 235) protects market data, other critical governance records likePendingUpgrade(Issue 32) andGuardianrecords might not have explicit TTL management called during their lifecycle. This puts long-running governance processes at risk of expiring and becoming unrecoverable during periods of inactivity.Requirements and context
Suggested execution
git checkout -b fix/issue-85-gov-ttl-managementImplementation changes
governance.rsto includeextend_ttlcalls for all critical keys.Test and commit
Example commit message
fix: ensure consistent TTL management for all governance and protocol state
Guidelines