Closed
Description
Why
With the release of UTxO-HD, the memory ledger state snapshot is modified (from a single file to a directory with multiple files). We need to adapt the ancillary files artifact production done withe the Cardano databse certification to support this modification (while being backward compatible).
What
Extend the LedgerFile
structure to support multiple files in a ledger state snapshot in the aggregator
How
- Rename the
LedgerFile
structure toLegderStateSnapshot
- Make the
LegderStateSnapshot
an enum with the variants:-
Legacy
: one file for the snapshot with a name composed of digits only -
InMemory
: one directory with a name composed of digits only (and filesmeta
,state
andtables/tvar
in it)
-
- Add a
get_files_relative_path(&self) -> Vec<PathBuf>
function to theLegderStateSnapshot
which lists the string lossy path of the files (string lossy conversion done in thefrom_path(path: &Path) -> Option<LedgerSnapshot>
function) - In the
CompressedArchiveSnapshotter
, adapt theget_files_and_directories_for_ancillary_snapshot
function to list all the filenames of all the ledger state snapshots used