aboutsummaryrefslogtreecommitdiffstats
path: root/core/genesis.go
diff options
context:
space:
mode:
authorJeffrey Wilcke <jeffrey@ethereum.org>2016-11-20 19:18:39 +0800
committerJeffrey Wilcke <jeffrey@ethereum.org>2016-11-23 16:34:01 +0800
commitaad4890082c1624795991d534db9497c8b63630d (patch)
tree88dca9b73bdcdea2cbed32471c37933c308ac54d /core/genesis.go
parenta0e42aa4e206247efe6df8706a2fb6bbdf6074b4 (diff)
downloaddexon-aad4890082c1624795991d534db9497c8b63630d.tar
dexon-aad4890082c1624795991d534db9497c8b63630d.tar.gz
dexon-aad4890082c1624795991d534db9497c8b63630d.tar.bz2
dexon-aad4890082c1624795991d534db9497c8b63630d.tar.lz
dexon-aad4890082c1624795991d534db9497c8b63630d.tar.xz
dexon-aad4890082c1624795991d534db9497c8b63630d.tar.zst
dexon-aad4890082c1624795991d534db9497c8b63630d.zip
cmd/geth, core, light, mobile: removed state account StartingNonce
All account's nonce start at 0.
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 8509f664d..44a83f236 100644
--- a/core/genesis.go
+++ b/core/genesis.go
@@ -43,7 +43,7 @@ func WriteGenesisBlock(chainDb ethdb.Database, reader io.Reader) (*types.Block,
}
var genesis struct {
- ChainConfig *params.ChainConfig `json:"config"`
+ ChainConfig params.ChainConfig `json:"config"`
Nonce string
Timestamp string
ParentHash string
@@ -115,7 +115,7 @@ func WriteGenesisBlock(chainDb ethdb.Database, reader io.Reader) (*types.Block,
if err := WriteHeadBlockHash(chainDb, block.Hash()); err != nil {
return nil, err
}
- if err := WriteChainConfig(chainDb, block.Hash(), genesis.ChainConfig); err != nil {
+ if err := WriteChainConfig(chainDb, block.Hash(), &genesis.ChainConfig); err != nil {
return nil, err
}