storage-test
Safe HaskellSafe-Inferred
LanguageHaskell2010

Test.Ouroboros.Storage.LedgerDB.OnDisk

Description

On-disk ledger DB tests.

This is a model based test. The commands here are

  • Get the current ledger state
  • Push a block, or switch to a fork
  • Write a snapshot to disk
  • Restore the ledger DB from the snapshots on disk
  • Model disk corruption

The model here is satisfyingly simple: just a map from blocks to their corresponding ledger state.

Documentation

showLabelledExamples Source #

Arguments

SecurityParam 
Maybe Int 
→ (Tag → Bool)

Which tag are we interested in?

IO ()