mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-02-27 08:07:22 +00:00
Added glog messages like Transaction
This commit is contained in:
parent
6add45cd10
commit
1f34daccc3
1 changed files with 4 additions and 0 deletions
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue