-
Notifications
You must be signed in to change notification settings - Fork 224
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
light-client: Attack detector and evidence reporting #1292
Conversation
…ir proto definitions
51e2a3f
to
6ba0f6e
Compare
Trying to read the evidence with a hermes version using this branch and I see:
Also tried to use the block here (which is the same as the one read by hermes above, coming from Go light client evidence after a forked chain) in one of the gaia fixtures and seeing similar error:
Edit: tendermint-rs/tendermint/src/validator.rs Lines 271 to 278 in 9e48f17
The total_voting_power is missing in the ValidatorSet of the ConflictingBlock (of type LigthBlock ). Not sure if it was ever sent by the Go light client. I will also try with the Rust light client.But iirc, we had this issue also in the past with the IBC light client updates. If the field is missing we shouldn't do the check, not sure how easy we can determine this though. |
Same error |
Unfortunately there is no way to distinguish between the field being missing or its value being 0. I believe the best we can do is to drop the check if the value is 0. What do you think? |
Yes, let's drop the check. There is this Maybe it specifically means that it will not be included in RPC responses that have validator set. Maybe we should clarify with the Comet team. There are also some comments in ValidatorSetFromProto and ToProto() that suggest that for protos also this field is set to 0 on encoding and computed when decoding. |
98188b6
to
61a0f6b
Compare
I removed the changes related to the addition of light client CLI and the removal of the supervisor into their own PR, to be merged after this one: #1308 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Amazing work @romac! Thanks also for the help @mzabaluev
Closes: #1291
Closes: #1219
Closes: #415
.changelog/