MCPcopy Create free account
hub / github.com/MiloOweno/kernel-lab / LoadLedger

Function LoadLedger

data/ledger.go:81–119  ·  view source on GitHub ↗

LoadLedger creates a Ledger object to represent the ledger with the specified database file prefix, initializing it if necessary.

(
	log logging.Logger, dir T, memory bool,
	genesisProto protocol.ConsensusVersion, genesisBal bookkeeping.GenesisBalances, genesisID string, genesisHash crypto.Digest,
	cfg config.Local,
)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 15

FabricateLedgerFunction · 0.92
testingenvWithBalancesFunction · 0.92
benchenvFunction · 0.92
buildTestLedgerFunction · 0.92
makeLedgerFunction · 0.92
BenchmarkAssembleBlockFunction · 0.92
MakeFullFunction · 0.92
MakeFollowerFunction · 0.92
testingenvFunction · 0.85

Calls 3

MakeGenesisBlockFunction · 0.92
OpenLedgerFunction · 0.92
DebugfMethod · 0.65

Tested by 15

benchenvFunction · 0.74
buildTestLedgerFunction · 0.74
makeLedgerFunction · 0.74
BenchmarkAssembleBlockFunction · 0.74
testingenvFunction · 0.68
makeLedgerMethod · 0.68