-
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
createdkg: validate inputs #2136
Conversation
func isMainNetwork(network string) bool { | ||
// validateConfig returns an error if any of the provided config parameter is invalid. | ||
func validateConfig(threshold, numOperators int, network string) error { | ||
if threshold > numOperators { |
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.
Fix for #2093
return errors.Wrap(err, "invalid withdrawal address", z.Str("addr", addr)) | ||
} else if checksumAddr != addr { |
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.
Fix for #2094
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #2136 +/- ##
==========================================
+ Coverage 53.37% 53.41% +0.03%
==========================================
Files 174 174
Lines 22799 22815 +16
==========================================
+ Hits 12170 12186 +16
- Misses 9167 9168 +1
+ Partials 1462 1461 -1
☔ View full report in Codecov by Sentry. |
@@ -36,8 +36,9 @@ import ( | |||
) | |||
|
|||
const ( | |||
// zeroAddress is not owned by any user, is often associated with token burn & mint/genesis events and used as a generic null address. |
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.
Adds checks to validate inputs for
create dkg
command.Fixes OBOL-19 and OBOL-20 of sigp audit.
category: feature
ticket: #2093