Added glog messages like Transaction
This commit is contained in:
parent
6add45cd10
commit
1f34daccc3
@ -794,8 +794,12 @@ func (self *XEth) PushTx(encodedTx string) (string, error) {
|
|||||||
|
|
||||||
if tx.To() == nil {
|
if tx.To() == nil {
|
||||||
addr := core.AddressFromMessage(tx)
|
addr := core.AddressFromMessage(tx)
|
||||||
|
glog.V(logger.Info).Infof("Tx(%x) created: %x\n", tx.Hash(), addr)
|
||||||
return addr.Hex(), nil
|
return addr.Hex(), nil
|
||||||
|
} else {
|
||||||
|
glog.V(logger.Info).Infof("Tx(%x) to: %x\n", tx.Hash(), tx.To())
|
||||||
}
|
}
|
||||||
|
|
||||||
return tx.Hash().Hex(), nil
|
return tx.Hash().Hex(), nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user