Documentation
¶
Index ¶
Constants ¶
View Source
const ( ProtocolParachainKey = "polkadot-parachain" Substrate = "substrate" )
Variables ¶
This section is empty.
Functions ¶
func CreateNetworkSpec ¶
func CreateNetworkSpec(payload *service.CreateNetworkSpecPayload) (*service.NetworkSpec, error)
Types ¶
type CfgBootNode ¶
type CfgBootNode struct { Count int `json:"count"` Node service.CreateNodePayload `json:"node"` SudoArgs []string `json:"sudoArgs"` }
type CfgBootstrap ¶
type CfgBootstrap struct { NetworkSpec *service.CreateNetworkSpecPayload `json:"networkSpec"` Validator CfgValidator `json:"validator"` BootNode CfgBootNode `json:"bootNode"` }
func ReadConfig ¶
func ReadConfig(filePath string) (*CfgBootstrap, error)
type CfgValidator ¶
type CfgValidator struct { Count int `json:"count"` Node service.CreateNodePayload `json:"node"` SessionsKey [][]service.SessionKey `json:"sessionsKey"` SudoArgs []string `json:"sudoArgs"` }
type CreateNodeResult ¶
func CreateBootNode ¶
func CreateBootNode(exArgs []string, bootNode CfgBootNode, spec *service.NetworkSpec) []*CreateNodeResult
func CreateValidator ¶
func CreateValidator(cfgValidator CfgValidator, spec *service.NetworkSpec) []*CreateNodeResult
loop to create validators from config
Click to show internal directories.
Click to hide internal directories.