enhance some comment

This commit is contained in:
Lin Corey 2018-11-01 10:24:47 +08:00
parent f08f596a37
commit cc02055e28
3 changed files with 4 additions and 3 deletions

View file

@ -176,8 +176,9 @@ func SetupGenesisBlock(db ethdb.Database, genesis *Genesis) (*params.ChainConfig
} }
} }
// Get the existing chain configuration. // Get the new chain configuration for genesis block.
newcfg := genesis.configOrDefault(stored) newcfg := genesis.configOrDefault(stored)
// Get the existing chain configuration for genesis block.
storedcfg := rawdb.ReadChainConfig(db, stored) storedcfg := rawdb.ReadChainConfig(db, stored)
if storedcfg == nil { if storedcfg == nil {
log.Warn("Found genesis block without chain config") log.Warn("Found genesis block without chain config")

View file

@ -122,7 +122,7 @@ type Config struct {
// Miscellaneous options // Miscellaneous options
DocRoot string `toml:"-"` DocRoot string `toml:"-"`
// Type of the EWASM interpreter ("" for detault) // Type of the EWASM interpreter ("" for default)
EWASMInterpreter string EWASMInterpreter string
// Type of the EVM interpreter ("" for default) // Type of the EVM interpreter ("" for default)
EVMInterpreter string EVMInterpreter string

View file

@ -228,7 +228,7 @@ type transport interface {
MsgReadWriter MsgReadWriter
// transports must provide Close because we use MsgPipe in some of // transports must provide Close because we use MsgPipe in some of
// the tests. Closing the actual network connection doesn't do // the tests. Closing the actual network connection doesn't do
// anything in those tests because NsgPipe doesn't use it. // anything in those tests because MsgPipe doesn't use it.
close(err error) close(err error)
} }