Skip to content

Fix/issue 70 backup verification#99

Open
Emmanuel-Ugochukwu1 wants to merge 2 commits into
VeriNode-Labs:mainfrom
Emmanuel-Ugochukwu1:fix/issue-70-backup-verification
Open

Fix/issue 70 backup verification#99
Emmanuel-Ugochukwu1 wants to merge 2 commits into
VeriNode-Labs:mainfrom
Emmanuel-Ugochukwu1:fix/issue-70-backup-verification

Conversation

@Emmanuel-Ugochukwu1

Copy link
Copy Markdown

closes #70

…n host errors

ReentrancyGuard and TenantBondManager tests accessed storage directly
without a registered contract context (env.register_contract +
env.as_contract), causing all 17 pool_manager tests to panic with:
  this function is not accessible outside of a contract

Changes:
- reentrancy_guard.rs: 4 tests now register SoroSusu and wrap in as_contract
- tenant_bond.rs: 13 tests now use the same pattern; invariant test
  batches lock/unlock ops to stay under Soroban host budget limit

Test results: 384 passed, 0 failed (was 153 passed, 17 failed)
…ing (closes VeriNode-Labs#70)

Implements the Scheduled Database Backup Verification with Restore Testing
feature:
- StateSnapshot: epoch-scoped snapshots with SHA-256 Merkle root integrity
- BackupScheduler: configurable interval, cache eviction (256 snapshots max)
- StateChunk: per-chunk integrity hashing and tamper detection
- Restore testing: chunk-level comparison against stored snapshots
- SnapshotHealth enum: Healthy/Corrupted/Missing

Integration tests (11) and inline unit tests (14) cover the full
lifecycle: creation, verification, eviction, restore, edge cases.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Scheduled Database Backup Verification with Restore Testing

1 participant