Skip to content

Commit

Permalink
chore: make function comment match function name
Browse files Browse the repository at this point in the history
Signed-off-by: tcpdumppy <[email protected]>
  • Loading branch information
tcpdumppy committed Mar 6, 2025
1 parent 17ca154 commit 7178f07
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cl/beacon/beaconhttp/args.go
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ func HashFromQueryParams(r *http.Request, name string) (*common.Hash, error) {
return &hash, nil
}

// uint64FromQueryParams retrieves a number from the query params, in base 10.
// Uint64FromQueryParams retrieves a number from the query params, in base 10.
func Uint64FromQueryParams(r *http.Request, name string) (*uint64, error) {
str := r.URL.Query().Get(name)
if str == "" {
Expand Down
2 changes: 1 addition & 1 deletion cl/clparams/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ func (b *BeaconChainConfig) MinEpochsForBlockRequests() uint64 {
return b.MinValidatorWithdrawabilityDelay + (b.ChurnLimitQuotient)/2
}

// MinSlotsForBlobRequests equal to MIN_EPOCHS_FOR_BLOB_SIDECARS_REQUESTS * SLOTS_PER_EPOCH
// MinSlotsForBlobsSidecarsRequest equal to MIN_EPOCHS_FOR_BLOB_SIDECARS_REQUESTS * SLOTS_PER_EPOCH
func (b *BeaconChainConfig) MinSlotsForBlobsSidecarsRequest() uint64 {
return b.MinEpochsForBlobSidecarsRequests * b.SlotsPerEpoch
}
Expand Down
2 changes: 1 addition & 1 deletion cl/clparams/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ func (v StateVersion) AfterOrEqual(other StateVersion) bool {
return v >= other
}

// stringToClVersion converts the string to the current state version.
// StringToClVersion converts the string to the current state version.
func StringToClVersion(s string) (StateVersion, error) {
switch s {
case "phase0":
Expand Down

0 comments on commit 7178f07

Please sign in to comment.