node

package
v0.0.0-...-77960fc Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 12, 2018 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NodeCmd = &cobra.Command{
	Use:   "node",
	Short: "Start plasma node",
	Long:  `Start the Plasma child chain.`,

	PreRunE: func(cmd *cobra.Command, args []string) error {
		return initConfig(cmd)
	},
	Run: func(cmd *cobra.Command, args []string) {
		n := new(network.Node)
		err := n.Start()
		if err != nil {
			log.WithError(err).Fatal("node failed to start")
		}
	},
	PostRun: func(cmd *cobra.Command, args []string) {
		waitForExit()
	},
}

NodeCmd represents the subcommand to start Plasma chain node

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL