mirror of https://github.com/ethereum/go-ethereum
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
594 B
37 lines
594 B
11 years ago
|
package main
|
||
|
|
||
|
import (
|
||
|
"math"
|
||
|
)
|
||
|
|
||
|
/*
|
||
|
* This is the special genesis block.
|
||
|
*/
|
||
|
|
||
|
var GenisisHeader = []interface{}{
|
||
|
// Block number
|
||
|
uint32(0),
|
||
|
// Previous hash (none)
|
||
|
"",
|
||
|
// Sha of uncles
|
||
|
string(Sha256Bin(Encode([]interface{}{}))),
|
||
|
// Coinbase
|
||
|
"",
|
||
|
// Root state
|
||
|
"",
|
||
|
// Sha of transactions
|
||
|
string(Sha256Bin(Encode([]interface{}{}))),
|
||
|
// Difficulty
|
||
|
uint32(math.Pow(2, 36)),
|
||
|
// Time
|
||
|
uint64(1),
|
||
|
// Nonce
|
||
|
uint32(0),
|
||
|
// Extra
|
||
|
"",
|
||
|
}
|
||
|
|
||
|
var Genesis = []interface{}{ GenisisHeader, []interface{}{}, []interface{}{} }
|
||
|
|
||
|
var GenisisBlock = NewBlock( Encode(Genesis) )
|