Skip to content
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

cmd: remove todos #2899

Merged
merged 1 commit into from
Feb 26, 2024
Merged

cmd: remove todos #2899

merged 1 commit into from
Feb 26, 2024

Conversation

xenowits
Copy link
Contributor

Removes TODOs in the cmd package.

category: misc
ticket: none

@xenowits xenowits self-assigned this Feb 22, 2024
@@ -131,8 +131,6 @@ func SignK1(m *manifestpb.Mutation, secret *k1.PrivateKey) (*manifestpb.SignedMu
}

// verifyK1SignedMutation verifies that the signed mutation is signed by a k1 key.
//
// TODO(corver): Figure out no-verify case.
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We verify k1 signatures, so we don't need a "no-verify" case

@@ -104,7 +104,6 @@ func TestValidateConfigAddValidators(t *testing.T) {
}
}

// TODO(xenowits): Add more extensive tests, this is just a very simple unit test.
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The test is already comprehensive enough to test the "add validators" feature

In addition to that, the add validators feature is not in production, it is under the charon alpha command

@@ -77,7 +77,6 @@ func mustMarkFlagRequired(cmd *cobra.Command, flag string) {

func runCreateDKG(ctx context.Context, conf createDKGConfig) (err error) {
// Map prater to goerli to ensure backwards compatibility with older cluster definitions.
// TODO(xenowits): Remove the mapping later.
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can remove code for goerli entirely when goerli gets deprecated in a couple of weeks

https://blog.ethereum.org/2024/01/10/goerli-dencun-announcement

@@ -41,7 +41,7 @@ type Config struct {
MaxResPerPeer int
MaxConns int
FilterPrivAddrs bool
RelayLogLevel string // TODO(corver): Rename to LibP2PLogLevel.
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Renamed ✅

@@ -94,7 +94,6 @@ func bindRunFlags(cmd *cobra.Command, config *app.Config) {
})
}

// TODO(dhruv): add more test only flags to this function.
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We only have one unsafe command for now. We can always add new unsafe commands, no need for a todo for that

@xenowits xenowits added the merge when ready Indicates bulldozer bot may merge when all checks pass label Feb 26, 2024
Copy link

sonarcloud bot commented Feb 26, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@obol-bulldozer obol-bulldozer bot merged commit 2676a14 into main Feb 26, 2024
10 checks passed
@obol-bulldozer obol-bulldozer bot deleted the xenowits/remove-todos branch February 26, 2024 11:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merge when ready Indicates bulldozer bot may merge when all checks pass
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants