diff options
author | changhong <changhong.yu@shanbay.com> | 2017-05-11 09:55:48 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2017-05-25 22:14:33 +0800 |
commit | 17f0b1194232ebebc4e14f905e6e1d2d148aa5b6 (patch) | |
tree | 60663b43bff6e8df5b5a4693cbabc7756482136e /core/genesis.go | |
parent | 07aae19e5da66ed404453e6be70ab84db516207b (diff) | |
download | go-tangerine-17f0b1194232ebebc4e14f905e6e1d2d148aa5b6.tar go-tangerine-17f0b1194232ebebc4e14f905e6e1d2d148aa5b6.tar.gz go-tangerine-17f0b1194232ebebc4e14f905e6e1d2d148aa5b6.tar.bz2 go-tangerine-17f0b1194232ebebc4e14f905e6e1d2d148aa5b6.tar.lz go-tangerine-17f0b1194232ebebc4e14f905e6e1d2d148aa5b6.tar.xz go-tangerine-17f0b1194232ebebc4e14f905e6e1d2d148aa5b6.tar.zst go-tangerine-17f0b1194232ebebc4e14f905e6e1d2d148aa5b6.zip |
core: typos and comments improve
1. fix typos
2. methods recevier of struct should be same
3. comments improve
(cherry picked from commit 1ba979539582a00b7fd1a7c8a37a6852e59eac0d)
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 8f55d3a37..947a53c70 100644 --- a/core/genesis.go +++ b/core/genesis.go @@ -133,7 +133,7 @@ func SetupGenesisBlock(db ethdb.Database, genesis *Genesis) (*params.ChainConfig newcfg := genesis.configOrDefault(stored) storedcfg, err := GetChainConfig(db, stored) if err != nil { - if err == ChainConfigNotFoundErr { + if err == ErrChainConfigNotFound { // This case happens if a genesis write was interrupted. log.Warn("Found genesis block without chain config") err = WriteChainConfig(db, stored, newcfg) |