diff options
author | Péter Szilágyi <peterke@gmail.com> | 2015-09-01 01:21:02 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2015-09-11 22:42:25 +0800 |
commit | 2b339cbbd8bb475d2195d54a71dcced700003430 (patch) | |
tree | 7520c67d5bb5c66fe2430394a72f83d052bbe2b7 /core/genesis.go | |
parent | 4e075e401354b4ee068cf78b1f283763fe927245 (diff) | |
download | dexon-2b339cbbd8bb475d2195d54a71dcced700003430.tar dexon-2b339cbbd8bb475d2195d54a71dcced700003430.tar.gz dexon-2b339cbbd8bb475d2195d54a71dcced700003430.tar.bz2 dexon-2b339cbbd8bb475d2195d54a71dcced700003430.tar.lz dexon-2b339cbbd8bb475d2195d54a71dcced700003430.tar.xz dexon-2b339cbbd8bb475d2195d54a71dcced700003430.tar.zst dexon-2b339cbbd8bb475d2195d54a71dcced700003430.zip |
core, eth: split the db blocks into headers and bodies
Diffstat (limited to 'core/genesis.go')
-rw-r--r-- | core/genesis.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/genesis.go b/core/genesis.go index 7d4e03c99..6fbc671b0 100644 --- a/core/genesis.go +++ b/core/genesis.go @@ -86,7 +86,7 @@ func WriteGenesisBlock(chainDb common.Database, reader io.Reader) (*types.Block, if block := GetBlockByHash(chainDb, block.Hash()); block != nil { glog.V(logger.Info).Infoln("Genesis block already in chain. Writing canonical number") - err := WriteCanonNumber(chainDb, block) + err := WriteCanonNumber(chainDb, block.Hash(), block.NumberU64()) if err != nil { return nil, err } |