aboutsummaryrefslogtreecommitdiffstats
path: root/xeth
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-04-03 23:19:22 +0800
committerobscuren <geffobscura@gmail.com>2015-04-03 23:19:22 +0800
commitec8a6e0a2b74c5755ebab97e438b00f8765851fe (patch)
tree8c59bc962eec32b2ffb67cd7cff5fb4c93056b68 /xeth
parent36452afd4e31083d748155e5e5ddd682128aa9b0 (diff)
parentf9d94c7462bbb3a0c463427baefc68555f853dee (diff)
downloaddexon-ec8a6e0a2b74c5755ebab97e438b00f8765851fe.tar
dexon-ec8a6e0a2b74c5755ebab97e438b00f8765851fe.tar.gz
dexon-ec8a6e0a2b74c5755ebab97e438b00f8765851fe.tar.bz2
dexon-ec8a6e0a2b74c5755ebab97e438b00f8765851fe.tar.lz
dexon-ec8a6e0a2b74c5755ebab97e438b00f8765851fe.tar.xz
dexon-ec8a6e0a2b74c5755ebab97e438b00f8765851fe.tar.zst
dexon-ec8a6e0a2b74c5755ebab97e438b00f8765851fe.zip
Merge branch 'develop' into glog
Diffstat (limited to 'xeth')
-rw-r--r--xeth/xeth.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/xeth/xeth.go b/xeth/xeth.go
index b203e45de..825f26017 100644
--- a/xeth/xeth.go
+++ b/xeth/xeth.go
@@ -196,7 +196,7 @@ func (self *XEth) EthTransactionByHash(hash string) (tx *types.Transaction, blha
// meta
var txExtra struct {
BlockHash common.Hash
- BlockIndex int64
+ BlockIndex uint64
Index uint64
}
@@ -205,8 +205,10 @@ func (self *XEth) EthTransactionByHash(hash string) (tx *types.Transaction, blha
err := rlp.Decode(r, &txExtra)
if err == nil {
blhash = txExtra.BlockHash
- blnum = big.NewInt(txExtra.BlockIndex)
+ blnum = big.NewInt(int64(txExtra.BlockIndex))
txi = txExtra.Index
+ } else {
+ pipelogger.Errorln(err)
}
return