aboutsummaryrefslogtreecommitdiffstats
path: root/xeth/xeth.go
diff options
context:
space:
mode:
authorTaylor Gerring <taylor.gerring@gmail.com>2015-04-02 22:28:42 +0800
committerTaylor Gerring <taylor.gerring@gmail.com>2015-04-02 22:28:42 +0800
commit9bdf0b655de64c0c31d81da00ff2daec79359d89 (patch)
tree2723e65c446fa796c6e281a2c809dad1e5705fe4 /xeth/xeth.go
parent537e2cfeb64a14d9c54d5ae69e02a866b5117bd3 (diff)
downloadgo-tangerine-9bdf0b655de64c0c31d81da00ff2daec79359d89.tar
go-tangerine-9bdf0b655de64c0c31d81da00ff2daec79359d89.tar.gz
go-tangerine-9bdf0b655de64c0c31d81da00ff2daec79359d89.tar.bz2
go-tangerine-9bdf0b655de64c0c31d81da00ff2daec79359d89.tar.lz
go-tangerine-9bdf0b655de64c0c31d81da00ff2daec79359d89.tar.xz
go-tangerine-9bdf0b655de64c0c31d81da00ff2daec79359d89.tar.zst
go-tangerine-9bdf0b655de64c0c31d81da00ff2daec79359d89.zip
Fix RLP decoding of tx metadata
Diffstat (limited to 'xeth/xeth.go')
-rw-r--r--xeth/xeth.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/xeth/xeth.go b/xeth/xeth.go
index 6c9db16c2..ad6b09b54 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