core: typos and comments improve

1. fix typos
2. methods recevier of struct should be same
3. comments improve
This commit is contained in:
changhong
2017-05-11 09:55:48 +08:00
parent 40976ea1a0
commit 1ba9795395
11 changed files with 324 additions and 323 deletions

View File

@@ -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)