genesis

package
v0.1.1-beta Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2018 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultGenesisBlock

func DefaultGenesisBlock() *core.Genesis

DefaultGenesisBlock returns the Ethereum main net genesis block.

Example

ExampleDefaultGenesisBlock testing the allocate accounts count of genesis

totalAlloc := len(DefaultGenesisBlock().Alloc)
fmt.Println(totalAlloc)
Output:

22034

func DevGenesisBlock

func DevGenesisBlock() *core.Genesis

DevGenesisBlock returns the 'geth --dev' genesis block.

func SimulateGenesisBlock

func SimulateGenesisBlock() *core.Genesis

DefaultGenesisBlock returns the Ethereum main net genesis block.

Types

This section is empty.

Jump to

Keyboard shortcuts

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