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
Click to show internal directories.
Click to hide internal directories.