From cc02055e280248334ec234b2c02bcd113663c7d8 Mon Sep 17 00:00:00 2001 From: Lin Corey Date: Thu, 1 Nov 2018 10:24:47 +0800 Subject: [PATCH] enhance some comment --- core/genesis.go | 3 ++- eth/config.go | 2 +- p2p/server.go | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/core/genesis.go b/core/genesis.go index 6e71afd61c..18aa1bbd4f 100644 --- a/core/genesis.go +++ b/core/genesis.go @@ -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) + // Get the existing chain configuration for genesis block. storedcfg := rawdb.ReadChainConfig(db, stored) if storedcfg == nil { log.Warn("Found genesis block without chain config") diff --git a/eth/config.go b/eth/config.go index efbaafb6a2..e32c01a734 100644 --- a/eth/config.go +++ b/eth/config.go @@ -122,7 +122,7 @@ type Config struct { // Miscellaneous options DocRoot string `toml:"-"` - // Type of the EWASM interpreter ("" for detault) + // Type of the EWASM interpreter ("" for default) EWASMInterpreter string // Type of the EVM interpreter ("" for default) EVMInterpreter string diff --git a/p2p/server.go b/p2p/server.go index 38a881f7bd..6678608634 100644 --- a/p2p/server.go +++ b/p2p/server.go @@ -228,7 +228,7 @@ type transport interface { MsgReadWriter // transports must provide Close because we use MsgPipe in some of // 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) }