diff options
author | Péter Szilágyi <peterke@gmail.com> | 2017-02-28 19:35:17 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2017-02-28 21:03:20 +0800 |
commit | e588e0ca2b3b615af0ecfd5679c42df8f1cc4272 (patch) | |
tree | c37e95792ed9f17209b7de26a5d6047ac915db2a /core/genesis.go | |
parent | d4f60d362b8fcf82db1accf89c146a2a71375841 (diff) | |
download | dexon-e588e0ca2b3b615af0ecfd5679c42df8f1cc4272.tar dexon-e588e0ca2b3b615af0ecfd5679c42df8f1cc4272.tar.gz dexon-e588e0ca2b3b615af0ecfd5679c42df8f1cc4272.tar.bz2 dexon-e588e0ca2b3b615af0ecfd5679c42df8f1cc4272.tar.lz dexon-e588e0ca2b3b615af0ecfd5679c42df8f1cc4272.tar.xz dexon-e588e0ca2b3b615af0ecfd5679c42df8f1cc4272.tar.zst dexon-e588e0ca2b3b615af0ecfd5679c42df8f1cc4272.zip |
all: next batch of log polishes to contextual versions
Diffstat (limited to 'core/genesis.go')
-rw-r--r-- | core/genesis.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/core/genesis.go b/core/genesis.go index 58d3440d6..d827ac1c1 100644 --- a/core/genesis.go +++ b/core/genesis.go @@ -117,7 +117,7 @@ func WriteGenesisBlock(chainDb ethdb.Database, reader io.Reader) (*types.Block, }, nil, nil, nil) if block := GetBlock(chainDb, block.Hash(), block.NumberU64()); block != nil { - log.Info(fmt.Sprint("Genesis block already in chain. Writing canonical number")) + log.Info("Genesis block known, writing canonical number") err := WriteCanonicalHash(chainDb, block.Hash(), block.NumberU64()) if err != nil { return nil, err @@ -146,7 +146,6 @@ func WriteGenesisBlock(chainDb ethdb.Database, reader io.Reader) (*types.Block, if err := WriteChainConfig(chainDb, block.Hash(), genesis.ChainConfig); err != nil { return nil, err } - return block, nil } |