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

chore: fix some function names in comment #3435

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cluster/cluster_internal_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ func TestDefinitionVerify(t *testing.T) {
})
}

// randomOperator returns a random ETH1 private key and populated creator struct (excluding config signature).
// randomCreator returns a random ETH1 private key and populated creator struct (excluding config signature).
func randomCreator(t *testing.T) (*k1.PrivateKey, Creator) {
t.Helper()

Expand Down
4 changes: 2 additions & 2 deletions cluster/ssz.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ func hashDefinition(d Definition, configOnly bool) ([32]byte, error) {
return resp, nil
}

// hashLegaacy hashes a legacy definition.
// hashDefinitionLegacy hashes a legacy definition.
func hashDefinitionLegacy(d Definition, hh ssz.HashWalker, configOnly bool) error {
vaddrs, err := d.LegacyValidatorAddresses()
if err != nil {
Expand Down Expand Up @@ -446,7 +446,7 @@ func hashDefinitionV1x8(d Definition, hh ssz.HashWalker, configOnly bool) error
return hashDefinitionV1x8to9(d, hh, configOnly, nil)
}

// hashDefinitionV1x9OrLater hashes the new definition.
// hashDefinitionV1x9orLater hashes the new definition.
func hashDefinitionV1x9orLater(d Definition, hh ssz.HashWalker, configOnly bool) error {
return hashDefinitionV1x8to9(d, hh, configOnly, []hashExtraFields{
func(d Definition, hh ssz.HashWalker) error {
Expand Down
Loading