common

package
v1.0.1-0...-ed7063c Latest Latest
Warning

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

Go to latest
Published: May 24, 2018 License: LGPL-3.0 Imports: 18 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultGasPrice int64 = 0
	DefaultGasLimit int64 = 21000 // the gas of ether tx should be 21000
)

Functions

func CopyKeystore

func CopyKeystore(dir string, accounts []accounts.Account)

func GenerateIPs

func GenerateIPs(num int) (ips []string)

func GenerateKeys

func GenerateKeys(num int) (keys []*ecdsa.PrivateKey, nodekeys []string, addrs []common.Address)

func GeneratePasswordFile

func GeneratePasswordFile(dir string, filename string, password string)

func GenerateRandomDir

func GenerateRandomDir() (string, error)

func GenerateStaticNodes

func GenerateStaticNodes(nodekeys []string, ipAddrs []string) (filename string)

func GenerateStaticNodesAt

func GenerateStaticNodesAt(dir string, nodekeys []string, ipAddrs []string) (filename string)

func RandomBytes

func RandomBytes(len int) ([]byte, error)

func RandomHex

func RandomHex() string

func SaveNodeKey

func SaveNodeKey(key *ecdsa.PrivateKey, dataDir string) error

func SendEther

func SendEther(client client.Client, from *ecdsa.PrivateKey, to common.Address, amount *big.Int, nonce uint64) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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