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

Method initChain

tools/sifgen/network/network.go:231–238  ·  view source on GitHub ↗
(validator *Validator)

Source from the content-addressed store, hash-verified

229}
230
231func (n *Network) initChain(validator *Validator) error {
232 _, err := n.CLI.InitChain(validator.ChainID, validator.Moniker, validator.NodeHomeDir)
233 if err != nil {
234 return err
235 }
236
237 return nil
238}
239
240func (n *Network) setValidatorAddress(validator *Validator) error {
241 output, err := n.CLI.ValidatorAddress(validator.NodeHomeDir)

Callers 1

BuildMethod · 0.95

Calls 1

InitChainMethod · 0.65

Tested by

no test coverage detected