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: make function comments match function names #2341

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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 state-transition/core/state/statedb.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ type StateDB struct {
cs chain.ChainSpec
}

// NewBeaconStateFromDB creates a new beacon state from an underlying state db.
// NewFromDB creates a new beacon state from an underlying state db.
func (s *StateDB) NewFromDB(
bdb *beacondb.KVStore,
cs chain.ChainSpec,
Expand Down
4 changes: 2 additions & 2 deletions state-transition/core/state_processor_staking_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -618,7 +618,7 @@ func TestTransitionMaxWithdrawals(t *testing.T) {
require.Equal(t, maxBalance, val1BalAfter)
}

// TestTransitionHittingValidatorsCap shows that the extra
// TestTransitionHittingValidatorsCap_ExtraSmall shows that the extra
// validator added when validators set is at cap gets never activated
// and its deposit is returned at after next epoch starts.
func TestTransitionHittingValidatorsCap_ExtraSmall(t *testing.T) {
Expand Down Expand Up @@ -846,7 +846,7 @@ func TestTransitionHittingValidatorsCap_ExtraSmall(t *testing.T) {
require.NoError(t, err)
}

// TestTransitionHittingValidatorsCap shows that if the extra
// TestTransitionHittingValidatorsCap_ExtraBig shows that if the extra
// validator added when validators set is at cap improves amount staked
// an existing validator is removed at the beginning of next epoch.
//
Expand Down