Added glog messages like Transaction

This commit is contained in:
SilentCicero 2015-06-16 12:47:34 -04:00
parent 6add45cd10
commit 1f34daccc3
1 changed files with 4 additions and 0 deletions

View File

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