MCPcopy Index your code
hub / github.com/CovenantSQL/CovenantSQL / loadImmutableState

Function loadImmutableState

blockproducer/storage.go:650–662  ·  view source on GitHub ↗
(st xi.Storage)

Source from the content-addressed store, hash-verified

648}
649
650func loadImmutableState(st xi.Storage) (immutable *metaState, err error) {
651 immutable = newMetaState()
652 if err = loadAndCacheAccounts(st, immutable); err != nil {
653 return
654 }
655 if err = loadAndCacheShardChainProfiles(st, immutable); err != nil {
656 return
657 }
658 if err = loadAndCacheProviders(st, immutable); err != nil {
659 return
660 }
661 return
662}
663
664func loadDatabase(st xi.Storage) (
665 irre *blockNode,

Callers 1

loadDatabaseFunction · 0.85

Calls 4

newMetaStateFunction · 0.85
loadAndCacheAccountsFunction · 0.85
loadAndCacheProvidersFunction · 0.85

Tested by

no test coverage detected