Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { Transactions []transactions.ContractCall // contains filtered or unexported fields }
Config is a list of configuration parameters for generating a genesis block.
func GetPresetConfig ¶
GetPresetConfig fetches a preset configuration for a genesis block for the given name. Returns an error, if the name does not match any existing presets.
func NewConfig ¶
func NewConfig(timestamp int64, seed []byte, txs []transactions.ContractCall) (Config, error)
NewConfig will construct a new genesis config. This function does sanity checks on all passed parameters, and ensures a correct genesis block can be produced from them.
Click to show internal directories.
Click to hide internal directories.