-
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
feat: update the slashing and evidence modules to work with ICS #15908
Conversation
This comment has been minimized.
This comment has been minimized.
// constraints and ignore evidence that cannot be handled. | ||
return | ||
} | ||
|
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.
If we do not panic l75, can we at least log something?
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.
Agree!
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.
Why don't we move the validator and pubkey check above this and we can short-circuit everything else?
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.
Perhaps we can replicate this no-op in the slashing infractions.go ?
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
This comment was marked as duplicate.
This comment was marked as duplicate.
Sorry, something went wrong.
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
There's a really disturbing pattern of behavior coming out of informal systems, where they just gank stuff from us. They do not answer our questions in any forum, they are not helpful, and they are holding the hub back. |
This comment was marked as off-topic.
This comment was marked as off-topic.
Btw this PR is fine. There may be more needed. It is certainly a result of notionals work. That should be recognized so I don't need to prove it because this is very tedious. #15856 informal told us it was not needed. |
We have same change in this https://github.com/notional-labs/cosmos-sdk/tree/sdkv47-ics |
@@ -18,9 +18,6 @@ func (k Keeper) HandleValidatorSignature(ctx sdk.Context, addr cryptotypes.Addre | |||
|
|||
// fetch the validator public key | |||
consAddr := sdk.ConsAddress(addr) | |||
if _, err := k.GetPubkey(ctx, addr); err != nil { |
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
Could you add a changelog? |
Just adding a flag because we want to add an extra commit here. |
9a48333
to
d553fff
Compare
d553fff
to
c70b907
Compare
Co-authored-by: Julien Robert <julien@rbrt.fr> Co-authored-by: Jacob Gadikian <faddat@users.noreply.github.com> (cherry picked from commit 97e4978) # Conflicts: # CHANGELOG.md # x/evidence/keeper/infraction.go
Description
The ICS consumer module doesn't store validators' pubkeys in the slashing module making the slashing and evidence modules either panicing or no-oping when these keys aren't stored see:
cosmos-sdk/x/slashing/keeper/infractions.go
Line 19 in 9acdbb9
cosmos-sdk/x/evidence/keeper/infraction.go
Line 30 in 9acdbb9
This PR removes these two checks in order to work with ICS.
Note that this line was previously added to the evidence module by #13122 for the same reason.
Author Checklist
All items are required. Please add a note to the item if the item is not applicable and
please add links to any relevant follow-up issues.
I have...
!
to the type prefix if API or client breaking changeCHANGELOG.md
Reviewers Checklist
All items are required. Please add a note if the item is not applicable and please add
your handle next to the items reviewed if you only reviewed selected items.
I have...
!
in the type prefix if API or client breaking change