mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 18:32:23 +00:00
enhance some comment
This commit is contained in:
parent
f08f596a37
commit
cc02055e28
3 changed files with 4 additions and 3 deletions
|
|
@ -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")
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -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)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue