# Functions
CleanupTestEnv closes the ledgermagmt and removes the store directory.
Close closes all the opened ledgers and any resources held for ledger management.
CreateLedger creates a new ledger with the given genesis block.
GetLedgerIDs returns the ids of the ledgers created.
Initialize initializes ledgermgmt.
InitializeExistingTestEnvWithInitializer initializes ledgermgmt for tests with existing ledgers This function does not remove the existing ledgers and is used in upgrade tests TODO ledgermgmt should be reworked to move the package scoped functions to a struct.
InitializeTestEnv initializes ledgermgmt for tests.
InitializeTestEnvWithInitializer initializes ledgermgmt for tests with the supplied Initializer.
OpenLedger returns a ledger for the given id.
# Variables
ErrLedgerAlreadyOpened is thrown by a CreateLedger call if a ledger with the given id is already opened.
ErrLedgerMgmtNotInitialized is thrown when ledger mgmt is used before initializing this.
# Structs
Initializer encapsulates all the external dependencies for the ledger module.