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. |
5 years ago | |
---|---|---|
.. | ||
codec.go | Renamed wire.go to codec.go (#3827) | 5 years ago |
kv.go | state: txindex/kv: return an error if there's one (#4095) | 5 years ago |
kv_bench_test.go | txindexer: Refactor Tx Search Aggregation (#3851) | 5 years ago |
kv_test.go | linters: enable scopelint (#3963) | 5 years ago |