Merge pull request #635 from IntersectMBO/perturbing/audit-fix
implement audit findings
implement audit findings
The upstream library removed cardano-api dependency (PRs #32, #33). Breaking changes: CardanoApiEra type family removed, Babbage demoted from RecentEra to non-recent, Dijkstra promoted to RecentEra. - Add CardanoApiEra shim in Cardano.Api.Extra (temporary, will be removed when cardano-api is fully eliminated) - Replace all RecentEraBabbage patterns with InNonRecentEraBabbage - Add RecentEraDijkstra error stubs (wallet doesn't support it yet) - Update test files: remove Babbage-era delegation tests, update TransactionSpec imports and pattern matches
## Summary - Regenerate expired TLS test certificates (expired April 7) - Bump mithril client from 2543.1-hotfix to 2603.1 - Target `high-memory` runner label for E2E tests (OOM at 8GB cgroup limit, raised to 32GB on builder-new-1) Split from #5236 for independent merge. Related: #5242
Hide internal details (flush, reinitLastSeen, Connection, migration) from the public withSQLiteEventStore callback. The callback now receives only an EventStore — flush is handled internally by sourceEvents (auto-flush before reads), rotate, and the bracket cleanup; migration runs automatically on startup given the legacy state file path. Add schema versioning using SQLite's PRAGMA user_version. Migrations are applied incrementally on startup via migrateStep, making future schema changes straightforward. The node refuses to start if the database version is newer than expected (downgrade protection). Extract all inline SQL into named query functions for readability. Add migration tests: fresh DB version check, idempotency, and downgrade rejection. Update architecture docs with SQLite schema, async write-behind, and schema versioning documentation.
Co-authored-by: Alexey Kuleshevich <[email protected]>
Hide internal details (flush, reinitLastSeen, Connection, migration) from the public withSQLiteEventStore callback. The callback now receives only an EventStore — flush is handled internally by sourceEvents (auto-flush before reads), rotate, and the bracket cleanup; migration runs automatically on startup given the legacy state file path. Add schema versioning using SQLite's PRAGMA user_version. Migrations are applied incrementally on startup via migrateStep, making future schema changes straightforward. The node refuses to start if the database version is newer than expected (downgrade protection). Extract all inline SQL into named query functions for readability. Add migration tests: fresh DB version check, idempotency, and downgrade rejection. Update architecture docs with SQLite schema, async write-behind, and schema versioning documentation.
Co-authored-by: Alexey Kuleshevich <[email protected]>
Co-authored-by: Alexey Kuleshevich <[email protected]>