Jun 03, 10-11 AM (39)
Jun 03, 11-12 PM (76)
Jun 03, 12-1 PM (93)
Jun 03, 1-2 PM (28)
Jun 03, 2-3 PM (62)
Jun 03, 3-4 PM (26)
Jun 03, 4-5 PM (24)
Jun 03, 5-6 PM (23)
Jun 03, 6-7 PM (15)
Jun 03, 7-8 PM (17)
Jun 03, 8-9 PM (19)
Jun 03, 9-10 PM (9)
Jun 03, 10-11 PM (31)
Jun 03, 11-12 AM (14)
Jun 04, 12-1 AM (12)
Jun 04, 1-2 AM (4)
Jun 04, 2-3 AM (1)
Jun 04, 3-4 AM (5)
Jun 04, 4-5 AM (1)
Jun 04, 5-6 AM (0)
Jun 04, 6-7 AM (14)
Jun 04, 7-8 AM (10)
Jun 04, 8-9 AM (11)
Jun 04, 9-10 AM (19)
Jun 04, 10-11 AM (11)
Jun 04, 11-12 PM (14)
Jun 04, 12-1 PM (53)
Jun 04, 1-2 PM (39)
Jun 04, 2-3 PM (60)
Jun 04, 3-4 PM (12)
Jun 04, 4-5 PM (4)
Jun 04, 5-6 PM (7)
Jun 04, 6-7 PM (46)
Jun 04, 7-8 PM (27)
Jun 04, 8-9 PM (4)
Jun 04, 9-10 PM (2)
Jun 04, 10-11 PM (24)
Jun 04, 11-12 AM (7)
Jun 05, 12-1 AM (6)
Jun 05, 1-2 AM (8)
Jun 05, 2-3 AM (1)
Jun 05, 3-4 AM (1)
Jun 05, 4-5 AM (1)
Jun 05, 5-6 AM (5)
Jun 05, 6-7 AM (9)
Jun 05, 7-8 AM (12)
Jun 05, 8-9 AM (8)
Jun 05, 9-10 AM (11)
Jun 05, 10-11 AM (12)
Jun 05, 11-12 PM (8)
Jun 05, 12-1 PM (52)
Jun 05, 1-2 PM (61)
Jun 05, 2-3 PM (26)
Jun 05, 3-4 PM (24)
Jun 05, 4-5 PM (17)
Jun 05, 5-6 PM (7)
Jun 05, 6-7 PM (14)
Jun 05, 7-8 PM (12)
Jun 05, 8-9 PM (6)
Jun 05, 9-10 PM (2)
Jun 05, 10-11 PM (20)
Jun 05, 11-12 AM (9)
Jun 06, 12-1 AM (6)
Jun 06, 1-2 AM (0)
Jun 06, 2-3 AM (3)
Jun 06, 3-4 AM (4)
Jun 06, 4-5 AM (0)
Jun 06, 5-6 AM (24)
Jun 06, 6-7 AM (1)
Jun 06, 7-8 AM (2)
Jun 06, 8-9 AM (3)
Jun 06, 9-10 AM (0)
Jun 06, 10-11 AM (3)
Jun 06, 11-12 PM (6)
Jun 06, 12-1 PM (2)
Jun 06, 1-2 PM (2)
Jun 06, 2-3 PM (2)
Jun 06, 3-4 PM (18)
Jun 06, 4-5 PM (1)
Jun 06, 5-6 PM (6)
Jun 06, 6-7 PM (0)
Jun 06, 7-8 PM (6)
Jun 06, 8-9 PM (0)
Jun 06, 9-10 PM (1)
Jun 06, 10-11 PM (27)
Jun 06, 11-12 AM (9)
Jun 07, 12-1 AM (14)
Jun 07, 1-2 AM (2)
Jun 07, 2-3 AM (0)
Jun 07, 3-4 AM (0)
Jun 07, 4-5 AM (1)
Jun 07, 5-6 AM (1)
Jun 07, 6-7 AM (3)
Jun 07, 7-8 AM (0)
Jun 07, 8-9 AM (0)
Jun 07, 9-10 AM (1)
Jun 07, 10-11 AM (2)
Jun 07, 11-12 PM (2)
Jun 07, 12-1 PM (5)
Jun 07, 1-2 PM (35)
Jun 07, 2-3 PM (2)
Jun 07, 3-4 PM (4)
Jun 07, 4-5 PM (2)
Jun 07, 5-6 PM (4)
Jun 07, 6-7 PM (0)
Jun 07, 7-8 PM (0)
Jun 07, 8-9 PM (17)
Jun 07, 9-10 PM (1)
Jun 07, 10-11 PM (21)
Jun 07, 11-12 AM (9)
Jun 08, 12-1 AM (9)
Jun 08, 1-2 AM (5)
Jun 08, 2-3 AM (3)
Jun 08, 3-4 AM (4)
Jun 08, 4-5 AM (2)
Jun 08, 5-6 AM (9)
Jun 08, 6-7 AM (5)
Jun 08, 7-8 AM (25)
Jun 08, 8-9 AM (36)
Jun 08, 9-10 AM (40)
Jun 08, 10-11 AM (24)
Jun 08, 11-12 PM (22)
Jun 08, 12-1 PM (40)
Jun 08, 1-2 PM (48)
Jun 08, 2-3 PM (33)
Jun 08, 3-4 PM (27)
Jun 08, 4-5 PM (12)
Jun 08, 5-6 PM (23)
Jun 08, 6-7 PM (14)
Jun 08, 7-8 PM (3)
Jun 08, 8-9 PM (6)
Jun 08, 9-10 PM (19)
Jun 08, 10-11 PM (29)
Jun 08, 11-12 AM (8)
Jun 09, 12-1 AM (5)
Jun 09, 1-2 AM (3)
Jun 09, 2-3 AM (1)
Jun 09, 3-4 AM (3)
Jun 09, 4-5 AM (26)
Jun 09, 5-6 AM (5)
Jun 09, 6-7 AM (23)
Jun 09, 7-8 AM (50)
Jun 09, 8-9 AM (35)
Jun 09, 9-10 AM (45)
Jun 09, 10-11 AM (51)
Jun 09, 11-12 PM (46)
Jun 09, 12-1 PM (86)
Jun 09, 1-2 PM (67)
Jun 09, 2-3 PM (36)
Jun 09, 3-4 PM (38)
Jun 09, 4-5 PM (16)
Jun 09, 5-6 PM (17)
Jun 09, 6-7 PM (18)
Jun 09, 7-8 PM (19)
Jun 09, 8-9 PM (16)
Jun 09, 9-10 PM (16)
Jun 09, 10-11 PM (28)
Jun 09, 11-12 AM (10)
Jun 10, 12-1 AM (11)
Jun 10, 1-2 AM (16)
Jun 10, 2-3 AM (11)
Jun 10, 3-4 AM (7)
Jun 10, 4-5 AM (5)
Jun 10, 5-6 AM (2)
Jun 10, 6-7 AM (46)
Jun 10, 7-8 AM (82)
Jun 10, 8-9 AM (17)
Jun 10, 9-10 AM (33)
Jun 10, 10-11 AM (0)
2,783 commits this week Jun 03, 2026 - Jun 10, 2026
db-analyser: thread configured LSM salt and export path
The branch added a 'Maybe FsPath' export-path field to LSMArgs but did not
update db-analyser's call site. Rather than hardcoding it, surface the LSM
configuration (bloom-filter salt and snapshot export directory) via a new
'mkLSMConfig' method on 'HasProtocolInfo' (default: none). The Cardano instance
reads them from the node config's LedgerDB.LSMSalt and LedgerDB.LSMExportPath
fields, so db-analyser uses the same salt the database was created with (needed
for exported snapshots to be importable) and can export snapshots as it stores
ledger states. Falls back to a random salt when none is configured.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Db analyser analysis from snapshot (#2061)
Built on top of #2060 

# What changed

### 1. From #2060, Percolate the replay goal from `--analyse-from`

`openLedgerDB` previously hard-coded the replay goal to `genesisPoint`.
Because
`initialize` rejects every snapshot whose slot is more recent than the
replay
goal (`InitFailureTooRecent`), a genesis goal rejected *all* snapshots,
so
db-analyser always restarted from genesis and silently ignored
`--analyse-from`.

The replay goal is now derived from the `--analyse-from` argument
(genesis when
it is omitted), so snapshot selection considers the on-disk snapshots
and picks
the newest one that is not more recent than the requested slot.

### 2. Replay up to `--analyse-from` before analysing

With (1), the LedgerDB starts from the newest snapshot at or before
`--analyse-from`, but it was opened with an *empty* stream — no blocks
were
replayed. When no snapshot existed exactly at the requested slot, the
ledger
state (and therefore the analysis) silently began at the older
snapshot's tip
rather than at `--analyse-from`.

`openLedgerDB` is now handed the ImmutableDB and replays blocks on top
of the
chosen snapshot up to the replay goal, so the ledger state is exactly at
`--analyse-from` before the analysis begins. The replay stream stops at
the
first block past the goal, mirroring the `StartFromPoint` behaviour
where the
analyse-from block is the anchor and processing starts after it. When a
snapshot
already sits exactly at the requested slot, the stream stops immediately
and no
blocks are replayed.

If no snapshot exists exactly at the requested slot, db-analyser now
emits a
warning (the replay from an older snapshot up to the goal can be slow),
but
still proceeds.

### 3. Remove the unused `lgrStartSnapshot`

`LedgerDbArgs.lgrStartSnapshot :: Maybe DiskSnapshot` was introduced to
let
db-analyser start from a specific snapshot, but it was only ever set to
`Nothing` and db-analyser never used it. Its purpose is now served by
the
replay-goal-based snapshot selection above, so the field and the
corresponding
`Maybe DiskSnapshot` argument of `initialize` are removed.

**Breaking change** for downstream consumers of `LedgerDB.LedgerDbArgs`.
The
node only constructs `LedgerDbArgs` via `defaultArgs` and never set this
field,
so it is unaffected. A changelog fragment is included.