Documentation ¶
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultGenesisBlock ¶
DefaultGenesisBlock returns the Ethereum main net genesis block.
Example ¶
ExampleDefaultGenesisBlock testing the allocate accounts count of genesis
genBlock := DefaultGenesisBlock() allocs := genBlock.Alloc totalAlloc := len(allocs) totalBalance := big.NewInt(0) for _, alloc := range allocs { totalBalance.Add(totalBalance, alloc.Balance) } fmt.Println(totalAlloc) fmt.Println(totalBalance.String()) fmt.Println(string(genBlock.ExtraData))
Output: 22035 1000000000000000000000000000 CyberMiles for E-commerce
func DevGenesisBlock ¶
DevGenesisBlock returns the 'geth --dev' genesis block.
func SimulateGenesisBlock ¶
DefaultGenesisBlock returns the Ethereum main net genesis block.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.