aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-04-22 04:03:32 +0800
committerobscuren <geffobscura@gmail.com>2015-04-23 17:50:11 +0800
commit4feb5f6f9cd5128b4645c1265d814edb443ef43b (patch)
tree6dc5dc31b492263889b34d2fcb4f67a448d00bd5
parent5cb5df003de428bc7fb406caf2af46496d70cef4 (diff)
downloaddexon-4feb5f6f9cd5128b4645c1265d814edb443ef43b.tar
dexon-4feb5f6f9cd5128b4645c1265d814edb443ef43b.tar.gz
dexon-4feb5f6f9cd5128b4645c1265d814edb443ef43b.tar.bz2
dexon-4feb5f6f9cd5128b4645c1265d814edb443ef43b.tar.lz
dexon-4feb5f6f9cd5128b4645c1265d814edb443ef43b.tar.xz
dexon-4feb5f6f9cd5128b4645c1265d814edb443ef43b.tar.zst
dexon-4feb5f6f9cd5128b4645c1265d814edb443ef43b.zip
xeth, miner: updated some logging
-rw-r--r--miner/worker.go3
-rw-r--r--xeth/xeth.go4
2 files changed, 4 insertions, 3 deletions
diff --git a/miner/worker.go b/miner/worker.go
index dc1f04d87..9a655831e 100644
--- a/miner/worker.go
+++ b/miner/worker.go
@@ -258,7 +258,7 @@ func (self *worker) commitNewWork() {
tcount = 0
ignoredTransactors = set.New()
)
- //gasLimit:
+
for _, tx := range transactions {
// We can skip err. It has already been validated in the tx pool
from, _ := tx.From()
@@ -296,7 +296,6 @@ func (self *worker) commitNewWork() {
tcount++
}
}
- //self.eth.TxPool().InvalidateSet(remove)
var (
uncles []*types.Header
diff --git a/xeth/xeth.go b/xeth/xeth.go
index afcb33e4c..251b070e4 100644
--- a/xeth/xeth.go
+++ b/xeth/xeth.go
@@ -682,9 +682,11 @@ func (self *XEth) Transact(fromStr, toStr, valueStr, gasStr, gasPriceStr, codeSt
if contractCreation {
addr := core.AddressFromMessage(tx)
- glog.V(logger.Info).Infof("Contract addr %x\n", addr)
+ glog.V(logger.Info).Infof("Tx(%x) created: %x\n", tx.Hash(), addr)
return core.AddressFromMessage(tx).Hex(), nil
+ } else {
+ glog.V(logger.Info).Infof("Tx(%x) to: %x\n", tx.Hash(), tx.To())
}
return tx.Hash().Hex(), nil
}