geth

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: 14 Imported by: 0

Documentation

Index

Constants

View Source
const ETH_NET_STATS_PORT = 3338

Variables

This section is empty.

Functions

func Add

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

func Build

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

Build builds out a fresh new ethereum test network using geth

func GetDefaults

func GetDefaults() string

func GetParams

func GetParams() string

func GetServices

func GetServices() []util.Service

func MakeFakeAccounts

func MakeFakeAccounts(accs int) []string

Types

type EthConf

type EthConf struct {
	ExtraAccounts  int64  `json:"extraAccounts"`
	NetworkId      int64  `json:"networkId"`
	Difficulty     int64  `json:"difficulty"`
	InitBalance    string `json:"initBalance"`
	MaxPeers       int64  `json:"maxPeers"`
	GasLimit       int64  `json:"gasLimit"`
	HomesteadBlock int64  `json:"homesteadBlock"`
	Eip155Block    int64  `json:"eip155Block"`
	Eip158Block    int64  `json:"eip158Block"`
}

func NewConf

func NewConf(data map[string]interface{}) (*EthConf, 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