changelog; minor stuff; update glide

This commit is contained in:
Ethan Buchman
2017-12-06 02:42:54 -05:00
parent 58b4a8395b
commit 42e77de6a3
4 changed files with 23 additions and 16 deletions

View File

@ -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{