network

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2019 License: MIT Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NetworkCmd = &cobra.Command{
	Use:   "network",
	Short: "Advanced Network Configuration",
	Long: `Network
	
Advanced Network Config Manager. `,

	TraverseChildren: true,
}

NetworkCmd is the CLI subcommand

Functions

func BuildGenesisJSON

func BuildGenesisJSON(configDir string, peers types.PeerRecordList, contractAddress string, alloc config.GenesisAlloc) error

BuildGenesisJSON compiles and build a genesis.json file

Types

type Config

type Config struct {
	Network networkConfig `toml:"network"`
	Docker  dockerConfig  `toml:"docker"`
	Nodes   []node        `toml:"nodes,squash"`
}

Config defines the nodes.toml file structure

Jump to

Keyboard shortcuts

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