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 | |
---|---|---|
.. | ||
kv | state: txindex/kv: return an error if there's one (#4095) | 5 years ago |
null | all: gofmt (#1743) | 7 years ago |
indexer.go | all: gofmt (#1743) | 7 years ago |
indexer_service.go | Fix linter errors thrown by `lll` (#3970) | 5 years ago |
indexer_service_test.go | tm-cmn to tm-db (#3850) | 5 years ago |