aboutsummaryrefslogtreecommitdiffstats
path: root/core/genesis.go
diff options
context:
space:
mode:
authorJeffrey Wilcke <jeffrey@ethereum.org>2015-06-09 04:43:41 +0800
committerJeffrey Wilcke <jeffrey@ethereum.org>2015-06-09 04:43:41 +0800
commit55b7c14554bc4faabc14aac6410b75f97c55cd4e (patch)
treef5a840d89417bb2b0273d8edd6d81b07299c3f58 /core/genesis.go
parent75522f95ce13b449123b60963ec1261d1e0507f1 (diff)
parent6244b10a8f74d92addf977994e5a9c0e457229bb (diff)
downloaddexon-55b7c14554bc4faabc14aac6410b75f97c55cd4e.tar
dexon-55b7c14554bc4faabc14aac6410b75f97c55cd4e.tar.gz
dexon-55b7c14554bc4faabc14aac6410b75f97c55cd4e.tar.bz2
dexon-55b7c14554bc4faabc14aac6410b75f97c55cd4e.tar.lz
dexon-55b7c14554bc4faabc14aac6410b75f97c55cd4e.tar.xz
dexon-55b7c14554bc4faabc14aac6410b75f97c55cd4e.tar.zst
dexon-55b7c14554bc4faabc14aac6410b75f97c55cd4e.zip
Merge pull request #1199 from obscuren/settable_genesis_nonce
core: settable genesis nonce
Diffstat (limited to 'core/genesis.go')
-rw-r--r--core/genesis.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/genesis.go b/core/genesis.go
index a9b7339f3..dd894e0b0 100644
--- a/core/genesis.go
+++ b/core/genesis.go
@@ -19,8 +19,8 @@ var ZeroHash256 = make([]byte, 32)
var ZeroHash160 = make([]byte, 20)
var ZeroHash512 = make([]byte, 64)
-func GenesisBlock(db common.Database) *types.Block {
- genesis := types.NewBlock(common.Hash{}, common.Address{}, common.Hash{}, params.GenesisDifficulty, 42, nil)
+func GenesisBlock(nonce uint64, db common.Database) *types.Block {
+ genesis := types.NewBlock(common.Hash{}, common.Address{}, common.Hash{}, params.GenesisDifficulty, nonce, nil)
genesis.Header().Number = common.Big0
genesis.Header().GasLimit = params.GenesisGasLimit
genesis.Header().GasUsed = common.Big0