Files
tendermint/state/txindex
seungyeon-hwang 274447e2b0 state: txindex/kv: return an error if there's one (#4095)
when the user searches for a tx (hash=X)

This PR fixes error handling for performing a txindex search.

TxIndex.Get returns

    (txresult, nil) if the transaction is found.
    (nil, nil) if the transaction is not found.
    (nil, error) if error is occurred.

Therefore, if res is not nil, I think TxIndex.Search should return (txresult, nil).

Previously, however, this was not a problem because errors.Wrap returns nil if its first argument err is nil.
2019-11-05 12:33:29 +04:00
..
2018-06-15 02:03:50 +02:00
2018-06-15 02:03:50 +02:00