-
Notifications
You must be signed in to change notification settings - Fork 90
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
cluster/state: legacy lock json and transform #2182
Conversation
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #2182 +/- ##
==========================================
- Coverage 53.58% 53.45% -0.13%
==========================================
Files 174 179 +5
Lines 23073 23422 +349
==========================================
+ Hits 12363 12520 +157
- Misses 9239 9396 +157
- Partials 1471 1506 +35
☔ View full report in Codecov by Sentry. |
Name string | ||
Threshold int | ||
DKGAlgorithm string | ||
ForkVersion []byte |
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.
nit: why not use Network string
?
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.
I'm using the same cluster.Definition
types
cluster/state/mutationlegacylock.go
Outdated
@@ -85,7 +89,36 @@ func transformLegacyLock(_ Cluster, signed SignedMutation) (Cluster, error) { | |||
return Cluster{}, errors.Wrap(err, "verify legacy lock") | |||
} | |||
|
|||
// TODO(corver): Implement legacy lock transform. | |||
lock := signed.Mutation.Data.(lockWrapper) |
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.
nit: check comma ok please, same as line 64-66 in the same file
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.
verify function already checks that type is correct, I'll add a comment
Co-authored-by: Dhruv Bodani <[email protected]>
Add legacy lock serialisation and transform logic.
category: feature
ticket: #1886