aboutsummaryrefslogtreecommitdiffstats
path: root/xeth
diff options
context:
space:
mode:
authorSilentCicero <silentcicero@outlook.com>2015-06-17 00:28:10 +0800
committerSilentCicero <silentcicero@outlook.com>2015-06-17 00:28:10 +0800
commit7ec8c257ffd90ba4b63e5419ac9b9011af79be07 (patch)
treeaaa41e65927d3d53b39d85ee115ec5b91bb94824 /xeth
parente952bb65e7f74dc023a983415821b3522cc30746 (diff)
downloaddexon-7ec8c257ffd90ba4b63e5419ac9b9011af79be07.tar.gz
dexon-7ec8c257ffd90ba4b63e5419ac9b9011af79be07.tar.zst
dexon-7ec8c257ffd90ba4b63e5419ac9b9011af79be07.zip
New DataArgs and eth_sendRawTransaction
Diffstat (limited to 'xeth')
-rw-r--r--xeth/xeth.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/xeth/xeth.go b/xeth/xeth.go
index d2f992084..c64ae71e3 100644
--- a/xeth/xeth.go
+++ b/xeth/xeth.go
@@ -787,6 +787,9 @@ func (self *XEth) FromNumber(str string) string {
func (self *XEth) PushTx(encodedTx string) (string, error) {
tx := types.NewTransactionFromBytes(common.FromHex(encodedTx))
+
+ glog.V(logger.Info).Infof("Tx(%x) gas: %x\n", tx.Hash(), tx.Gas())
+
err := self.backend.TxPool().Add(tx)
if err != nil {
return "", err
@@ -965,7 +968,7 @@ func (self *XEth) Transact(fromStr, toStr, nonceStr, valueStr, gasStr, gasPriceS
return core.AddressFromMessage(tx).Hex(), nil
} else {
- glog.V(logger.Info).Infof("Tx(%x) to: %x\n", tx.Hash(), tx.To())
+ glog.V(logger.Info).Infof("YEYEYE!! Tx(%x) to: %x\n, gas: %x", tx.Hash(), tx.To(), tx.Gas())
}
return tx.Hash().Hex(), nil
}