MCPcopy Create free account
hub / github.com/DeAI-Artist/Linkis / GenesisFile

Method GenesisFile

config/config.go:266–268  ·  view source on GitHub ↗

GenesisFile returns the full path to the genesis.json file

()

Source from the content-addressed store, hash-verified

264
265// GenesisFile returns the full path to the genesis.json file
266func (cfg BaseConfig) GenesisFile() string {
267 return rootify(cfg.Genesis, cfg.RootDir)
268}
269
270// PrivValidatorKeyFile returns the full path to the priv_validator_key.json file
271func (cfg BaseConfig) PrivValidatorKeyFile() string {

Callers 15

BenchmarkLoadValidatorsFunction · 0.80
setupTestCaseFunction · 0.80
makeStateAndBlockStoreFunction · 0.80
TestLoadBaseMetaFunction · 0.80
TestPruneBlocksFunction · 0.80
initFilesWithConfigFunction · 0.80
WALGenerateNBlocksFunction · 0.80
checkGenesisHashFunction · 0.80
initFilesWithConfigFunction · 0.80
TestProviderFunction · 0.80

Calls 1

rootifyFunction · 0.85

Tested by 13

BenchmarkLoadValidatorsFunction · 0.64
setupTestCaseFunction · 0.64
makeStateAndBlockStoreFunction · 0.64
TestLoadBaseMetaFunction · 0.64
TestPruneBlocksFunction · 0.64
TestProviderFunction · 0.64
crashWALandCheckLivenessFunction · 0.64
testHandshakeReplayFunction · 0.64
stateAndStoreFunction · 0.64