xeth, miner: updated some logging

This commit is contained in:
obscuren 2015-04-21 22:03:32 +02:00
parent 5cb5df003d
commit 4feb5f6f9c
2 changed files with 4 additions and 3 deletions

View File

@ -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

View File

@ -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
}