Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var GenesisBlockParentHash common.Hash = common.Hash{0xff, 0xff, 0xff, 0xff}
GenesisBlockParentHash ensure genesis number is 0
Functions ¶
This section is empty.
Types ¶
type BlockConfig ¶
type BlockConfig struct { Nonce uint64 `json:"nonce"` Timestamp uint64 `json:"timestamp"` ExtraData [28]byte `json:"extraData"` }
BlockConfig contains all information for the block configuration
type Builder ¶
type Builder struct {
// contains filtered or unexported fields
}
Builder helper to build genesis block.
func (*Builder) Build ¶
Build build genesis block according to presets. TODO: implement stateCreator
type ChainConfig ¶
type ChainConfig struct {
Config *params.ChainConfig `json:"config"`
}
ChainConfig defines the chain configuration TODO: implement this feature to handle hard fork switches over the chain configuration
type Genesis ¶
type Genesis struct {
// contains filtered or unexported fields
}
Genesis specifies the header fields, state of a genesis block.
func NewCustomnet ¶
NewCustomnet create mainnet genesis.
func (*Genesis) BuildGenesisBlock ¶
BuildGenesisBlock build the genesis block. TODO: implement ID check like in thor
Click to show internal directories.
Click to hide internal directories.