Skip to content

Commit

Permalink
chore: fix comments
Browse files Browse the repository at this point in the history
  • Loading branch information
hoanguyenkh committed Jun 24, 2024
1 parent 372335b commit ea4e781
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion light/store/db/db.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ func (s *dbs) SaveLightBlock(lb *types.LightBlock) error {
return nil
}

// DeleteLightBlockAndValidatorSet deletes the LightBlock from
// DeleteLightBlock deletes the LightBlock from
// the db.
//
// Safe for concurrent use by multiple goroutines.
Expand Down
4 changes: 2 additions & 2 deletions state/state_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ func TestValidatorSimpleSaveLoad(t *testing.T) {
assert.Equal(vp1.Hash(), state.NextValidators.Hash(), "expected next validator hashes to match")
}

// TestValidatorChangesSaveLoad tests saving and loading a validator set with changes.
// TestOneValidatorChangesSaveLoad tests saving and loading a validator set with changes.
func TestOneValidatorChangesSaveLoad(t *testing.T) {
tearDown, stateDB, state := setupTestCase(t)
defer tearDown(t)
Expand Down Expand Up @@ -928,7 +928,7 @@ func TestStoreLoadValidatorsIncrementsProposerPriority(t *testing.T) {
assert.NotEqual(t, acc1, acc0, "expected ProposerPriority value to change between heights")
}

// TestValidatorChangesSaveLoad tests saving and loading a validator set with
// TestManyValidatorChangesSaveLoad tests saving and loading a validator set with
// changes.
func TestManyValidatorChangesSaveLoad(t *testing.T) {
const valSetSize = 7
Expand Down

0 comments on commit ea4e781

Please sign in to comment.