aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-04-09 04:18:16 +0800
committerobscuren <geffobscura@gmail.com>2015-04-09 04:18:16 +0800
commit6e2f78ebdd4c8d0d150327400a16d67cb65fc482 (patch)
treea04eef0289485f0d2e6f52b817a23cfebbc87834
parent2e2860e4df4500d1e801c9753ea71014738b83d3 (diff)
downloaddexon-6e2f78ebdd4c8d0d150327400a16d67cb65fc482.tar
dexon-6e2f78ebdd4c8d0d150327400a16d67cb65fc482.tar.gz
dexon-6e2f78ebdd4c8d0d150327400a16d67cb65fc482.tar.bz2
dexon-6e2f78ebdd4c8d0d150327400a16d67cb65fc482.tar.lz
dexon-6e2f78ebdd4c8d0d150327400a16d67cb65fc482.tar.xz
dexon-6e2f78ebdd4c8d0d150327400a16d67cb65fc482.tar.zst
dexon-6e2f78ebdd4c8d0d150327400a16d67cb65fc482.zip
Default log to stderr
-rw-r--r--cmd/utils/flags.go3
-rw-r--r--core/transaction_pool.go1
2 files changed, 2 insertions, 2 deletions
diff --git a/cmd/utils/flags.go b/cmd/utils/flags.go
index 51844a68e..c69faba03 100644
--- a/cmd/utils/flags.go
+++ b/cmd/utils/flags.go
@@ -231,7 +231,8 @@ func MakeEthConfig(clientID, version string, ctx *cli.Context) *eth.Config {
// Set verbosity on glog
glog.SetV(ctx.GlobalInt(LogLevelFlag.Name))
// Set the log type
- glog.SetToStderr(ctx.GlobalBool(LogToStdErrFlag.Name))
+ //glog.SetToStderr(ctx.GlobalBool(LogToStdErrFlag.Name))
+ glog.SetToStderr(true)
// Set the log dir
glog.SetLogDir(ctx.GlobalString(LogFileFlag.Name))
diff --git a/core/transaction_pool.go b/core/transaction_pool.go
index bfb54e24d..94a94f93d 100644
--- a/core/transaction_pool.go
+++ b/core/transaction_pool.go
@@ -122,7 +122,6 @@ func (self *TxPool) add(tx *types.Transaction) error {
}
err := self.ValidateTransaction(tx)
if err != nil {
- self.invalidHashes.Add(tx.Hash())
return err
}