Skip to content

Commit 4feb5f6

Browse files
committed
xeth, miner: updated some logging
1 parent 5cb5df0 commit 4feb5f6

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

‎miner/worker.go‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ func (self *worker) commitNewWork() {
258258
tcount = 0
259259
ignoredTransactors = set.New()
260260
)
261-
//gasLimit:
261+
262262
for _, tx := range transactions {
263263
// We can skip err. It has already been validated in the tx pool
264264
from, _ := tx.From()
@@ -296,7 +296,6 @@ func (self *worker) commitNewWork() {
296296
tcount++
297297
}
298298
}
299-
//self.eth.TxPool().InvalidateSet(remove)
300299

301300
var (
302301
uncles []*types.Header

‎xeth/xeth.go‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -682,9 +682,11 @@ func (self *XEth) Transact(fromStr, toStr, valueStr, gasStr, gasPriceStr, codeSt
682682

683683
if contractCreation {
684684
addr := core.AddressFromMessage(tx)
685-
glog.V(logger.Info).Infof("Contract addr %x\n", addr)
685+
glog.V(logger.Info).Infof("Tx(%x) created: %x\n", tx.Hash(), addr)
686686

687687
return core.AddressFromMessage(tx).Hex(), nil
688+
} else {
689+
glog.V(logger.Info).Infof("Tx(%x) to: %x\n", tx.Hash(), tx.To())
688690
}
689691
return tx.Hash().Hex(), nil
690692
}

0 commit comments

Comments
 (0)