-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Query Evidence doesn't return evidences #8360
Comments
Yes this was confusing to me. In reading the spec it says all submitted valid evidence is persisted. This is not the case for tendermint based evidence but is the case when it's submitted through the |
yes, this seems to be inconsistent with the behavior of |
Note there are two means of evidence handling and submission:
I suppose the doc should make this distinction clear. |
thanks, in that case this seems to be intended behavior and not a bug |
One question, from application standpoint wouldn't we want sdk to offer a way to query such incidents? |
There grpc query method could just query tendermint for this evidence. I'd rather not 1) make a state breaking change for this now and 2) unnecessarily duplicate tendermint state in SDK modules. |
This seems like something that could/ should be in a post stargate upgrade to me. |
Correct. This was always the behavior. All versions of the hub never persisted evidence submitted automatically by Tendermint. |
If there's consensus that we need this post stargate, I can make a PR for the same |
I think that, even if this is the intended behavior, there's probably something to be done to make it less confusing/surprising. |
Yes, just also persist evidence in |
I'd like to propose an alternate solution: tendermint/tendermint#5977. So the gRPC query handler would:
(related #8360 (comment)) |
Summary of Bug
The existing query evidence doesn't return handled evidences.
The issue may be because we're not storing the evidence here, it's only being handled but not committed to the store
cosmos-sdk/x/evidence/keeper/infraction.go
Line 25 in 9856327
Version
master
Steps to Reproduce
Simulate a validator double sign on a network using simapp
cc @alessio @tessr
For Admin Use
The text was updated successfully, but these errors were encountered: