-
Notifications
You must be signed in to change notification settings - Fork 3.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ensure tx search returns useful error messages #1126
Comments
related to #1021 |
@cwgoes Is this already fixed? Wonder if we can close this |
I'm not sure - this issue is more than a year old - but not specifically to my knowledge. |
You'll get the following response when querying for txs by bogus or non-existing events: {
"count": "0",
"limit": "30",
"page_number": "1",
"page_total": "0",
"total_count": "0",
"txs": []
} What exactly are you looking to add and under which scenarios @cwgoes ? |
Ah, the question was not that, but rather what happens when you query for an event that a node is not configured to index, and so will return no transactions even if transactions would have matched had the node indeed been indexing that event (tag). |
@cwgoes I see. Sounds like you want a friendly error returned signaling that the underlying RPC node either has indexing disabled or not enabled for those events types? Correct me if I'm wrong. |
Precisely! |
Got it. One immediate way to do this would be to read/load the Tendermint |
@alexanderbez @tac0turtle - you can assign this to me. I will work on it when I finish - #13703 |
done, let us know if you need any help |
wow, amazing long-term issue management 🎉 |
Can you explain this to me a little more? Not sure where to read the |
So this would probably happen somewhere in the I will note however, I'm not sure what CometBFT's long-term plans are on the indexer. |
Ok, so I think that I'm grabbing the list of events to index correctly here @alexanderbez Query.go
The issue is that the slice is empty - which I guess according to this line would mean that all events are indexed? Config.go
Is it reasonable to assume that if no events are returned for a given query and the
Also, if there are events defined, we can check against them to verify they are an indexed event... |
@cipherzzz I know you spent some time thinking about this problem, but I simply don't know if tackling this is worth it. First, the indexer config relates to Comet's (now legacy) proprietary indexer. It can also change over time and not watch what has been indexed thus far. Simply put, the config can change all the time and can sometimes not relate to what's actually indexed. |
Yeah, that's fine - thanks for the response. I'm definitely not looking to waste anyone's time if this is a moving target. I guess we can close this issue |
now that we pass everything to comet, we shouldnt do extra wrapping. thanks for looking into the issue ❤️ |
We should make sure searching for transactions, if the node wouldn't have indexed a transaction with the tag being searched for, returns an error instead of just returning no transactions.
The text was updated successfully, but these errors were encountered: