MCPcopy Create free account
hub / github.com/Sifchain/sifnode / SetConfig

Function SetConfig

app/prefix.go:19–27  ·  view source on GitHub ↗
(seal bool)

Source from the content-addressed store, hash-verified

17)
18
19func SetConfig(seal bool) {
20 config := sdk.GetConfig()
21 config.SetBech32PrefixForAccount(AccountAddressPrefix, AccountPubKeyPrefix)
22 config.SetBech32PrefixForValidator(ValidatorAddressPrefix, ValidatorPubKeyPrefix)
23 config.SetBech32PrefixForConsensusNode(ConsNodeAddressPrefix, ConsNodePubKeyPrefix)
24 if seal {
25 config.Seal()
26 }
27}

Callers 10

NewCLIFunction · 0.92
mainFunction · 0.92
ClpKeeperFunction · 0.92
mainFunction · 0.92
mainFunction · 0.92
TestGenerateEntryFunction · 0.92
mainFunction · 0.92

Calls

no outgoing calls

Tested by 4

TestGenerateEntryFunction · 0.74