aboutsummaryrefslogtreecommitdiffstats
path: root/xeth
diff options
context:
space:
mode:
authorJeffrey Wilcke <jeffrey@ethereum.org>2015-04-03 17:58:18 +0800
committerJeffrey Wilcke <jeffrey@ethereum.org>2015-04-03 17:58:18 +0800
commita6ca3d0261e915ac495a15e676eba54c2b57c980 (patch)
treec0da6efb242c9b5dbafa43a8621de156147bf4ca /xeth
parent29a9c6bedd39f3432f8031475646ec151ca5caa5 (diff)
parent3e042317adc99438d6ffde0cbde4f0b40ad579c1 (diff)
downloaddexon-a6ca3d0261e915ac495a15e676eba54c2b57c980.tar
dexon-a6ca3d0261e915ac495a15e676eba54c2b57c980.tar.gz
dexon-a6ca3d0261e915ac495a15e676eba54c2b57c980.tar.bz2
dexon-a6ca3d0261e915ac495a15e676eba54c2b57c980.tar.lz
dexon-a6ca3d0261e915ac495a15e676eba54c2b57c980.tar.xz
dexon-a6ca3d0261e915ac495a15e676eba54c2b57c980.tar.zst
dexon-a6ca3d0261e915ac495a15e676eba54c2b57c980.zip
Merge pull request #626 from tgerring/rpcfabian
RPC Tests updates
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