pantheon

package
v1.6.3 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2019 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Build

func Build(tn *testnet.TestNet) ([]string, error)

Build builds out a fresh new ethereum test network using pantheon

func GetDefaults

func GetDefaults() string

func GetParams

func GetParams() string

func GetServices

func GetServices() []util.Service

func PrepareGeth

func PrepareGeth(client *ssh.Client, panconf *PanConf, nodes int, buildState *state.BuildState) ([]string, error)

Types

type PanConf

type PanConf struct {
	NetworkId             int64  `json:"networkId"`
	Difficulty            int64  `json:"difficulty"`
	InitBalance           string `json:"initBalance"`
	MaxPeers              int64  `json:"maxPeers"`
	GasLimit              int64  `json:"gasLimit"`
	Consensus             string `json:"consensus"`
	EthashDifficulty      int64  `json:"fixeddifficulty`
	BlockPeriodSeconds    int64  `json:"blockPeriodSeconds"`
	Epoch                 int64  `json:"epoch"`
	RequestTimeoutSeconds int64  `json:"requesttimeoutseconds"`
	Accounts              int64  `json:"accounts"`
}

func NewConf

func NewConf(data map[string]interface{}) (*PanConf, error)

*

  • Fills in the defaults for missing parts,

Jump to

Keyboard shortcuts

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