genesis

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2018 License: Apache-2.0, Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GenesisAccount

type GenesisAccount struct {
	Addr    types.Address `json:"addr"     gencodec:"required"`
	Balance *big.Int      `json:"balance"    gencodec:"required"`
}

GenesisAccount is the account in genesis block.

type GensisBlock

type GensisBlock struct {
	Block           *types.Block
	GenesisAccounts []GenesisAccount
	ExtraData       []byte `json:"extra_data"`
}

GensisBlock is the genesis block struct of the chain.

func BuildGensisBlock

func BuildGensisBlock(genesisPath string) (*GensisBlock, error)

BuildGensisBlock build genesis block from the specified config file. if the genesis config file is not specified, build default genesis block

Jump to

Keyboard shortcuts

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