-
Notifications
You must be signed in to change notification settings - Fork 620
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
refactor: modify CheckMisbehaviourAndUpdateState to set client state #595
refactor: modify CheckMisbehaviourAndUpdateState to set client state #595
Conversation
removes the client state return value from CheckMisbehaviourAndUpdateState light clients are expected to set the client state in the client store after verifying misbehaviour fixed tests
Codecov Report
@@ Coverage Diff @@
## 02-client-refactor #595 +/- ##
======================================================
+ Coverage 79.85% 79.86% +0.01%
======================================================
Files 150 150
Lines 10803 10809 +6
======================================================
+ Hits 8627 8633 +6
Misses 1752 1752
Partials 424 424
|
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.
So CheckMisbehaviourAndUpdateState
and VerifyUpgradeAndUpdateState
were always supposed to update the client state but it was being done outside the scope of the functions?
So this just shifts the responsibility directly to the lightclient implementation as opposed to 02-client
, is that correct? 🤔
This function will be removed so these changes are unnecessary |
Description
Removes the client state return value from CheckMisbehaviourAndUpdateState. Llight clients are expected to set the client state in the client store after verifying misbehaviour
closes: #285
Before we can merge this PR, please make sure that all the following items have been
checked off. If any of the checklist items are not applicable, please leave them but
write a little note why.
docs/
) or specification (x/<module>/spec/
)godoc
comments.Unreleased
section inCHANGELOG.md
Files changed
in the Github PR explorerCodecov Report
in the comment section below once CI passes