mirror of
https://github.com/fluencelabs/tendermint
synced 2025-06-27 03:31:42 +00:00
changelog; minor stuff; update glide
This commit is contained in:
@ -84,13 +84,12 @@ func Tx(hash []byte, prove bool) (*ctypes.ResultTx, error) {
|
||||
}
|
||||
|
||||
height := r.Height
|
||||
index := int(r.Index) // XXX:overflow
|
||||
index := r.Index
|
||||
|
||||
var proof types.TxProof
|
||||
if prove {
|
||||
block := blockStore.LoadBlock(height)
|
||||
// TODO: handle overflow
|
||||
proof = block.Data.Txs.Proof(index)
|
||||
proof = block.Data.Txs.Proof(int(index)) // XXX: overflow on 32-bit machines
|
||||
}
|
||||
|
||||
return &ctypes.ResultTx{
|
||||
@ -188,8 +187,7 @@ func TxSearch(query string, prove bool) ([]*ctypes.ResultTx, error) {
|
||||
|
||||
if prove {
|
||||
block := blockStore.LoadBlock(height)
|
||||
// TODO: handle overflow
|
||||
proof = block.Data.Txs.Proof(int(index))
|
||||
proof = block.Data.Txs.Proof(int(index)) // XXX: overflow on 32-bit machines
|
||||
}
|
||||
|
||||
apiResults[i] = &ctypes.ResultTx{
|
||||
|
Reference in New Issue
Block a user