aboutsummaryrefslogtreecommitdiffstats
path: root/xeth
diff options
context:
space:
mode:
authorSilentCicero <silentcicero@outlook.com>2015-06-17 00:47:34 +0800
committerSilentCicero <silentcicero@outlook.com>2015-06-17 00:47:34 +0800
commit1f34daccc33d7d4edd3fdf27efbc0c29445f2f1f (patch)
treecfbd80ee8ca58f5c0b7021fc3a601c86613f9786 /xeth
parent6add45cd10a8f33e838a8922e694db7181c06fd9 (diff)
downloadgo-tangerine-1f34daccc33d7d4edd3fdf27efbc0c29445f2f1f.tar.gz
go-tangerine-1f34daccc33d7d4edd3fdf27efbc0c29445f2f1f.tar.zst
go-tangerine-1f34daccc33d7d4edd3fdf27efbc0c29445f2f1f.zip
Added glog messages like Transaction
Diffstat (limited to 'xeth')
-rw-r--r--xeth/xeth.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/xeth/xeth.go b/xeth/xeth.go
index d2f992084..f0ba91ba7 100644
--- a/xeth/xeth.go
+++ b/xeth/xeth.go
@@ -794,8 +794,12 @@ func (self *XEth) PushTx(encodedTx string) (string, error) {
if tx.To() == nil {
addr := core.AddressFromMessage(tx)
+ glog.V(logger.Info).Infof("Tx(%x) created: %x\n", tx.Hash(), addr)
return addr.Hex(), nil
+ } else {
+ glog.V(logger.Info).Infof("Tx(%x) to: %x\n", tx.Hash(), tx.To())
}
+
return tx.Hash().Hex(), nil
}