Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
dimartiro committed Oct 1, 2024
1 parent 48b7d63 commit 1edb73b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions dot/state/grandpa.go
Original file line number Diff line number Diff line change
Expand Up @@ -604,8 +604,8 @@ func (s *GrandpaState) GetPrecommits(round, setID uint64) ([]types.GrandpaSigned
return pcs, nil
}

// GetAuthoritesChangesFromBlock retrieves blocks numbers where authority set changes happened
func (s *GrandpaState) GetAuthoritesChangesFromBlock(initialBlockNumber uint) ([]uint, error) {
// GetAuthoritiesChangesFromBlock retrieves blocks numbers where authority set changes happened
func (s *GrandpaState) GetAuthoritiesChangesFromBlock(initialBlockNumber uint) ([]uint, error) {
blockNumbers := make([]uint, 0)
iter, err := s.db.NewPrefixIterator(setIDChangePrefix)
if err != nil {
Expand Down
12 changes: 6 additions & 6 deletions internal/client/consensus/grandpa/mocks_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions internal/client/consensus/grandpa/warp_sync.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ type BlockState interface {
}

type GrandpaState interface {
GetAuthoritesChangesFromBlock(blockNumber uint) ([]uint, error)
GetAuthoritiesChangesFromBlock(blockNumber uint) ([]uint, error)
}

type WarpSyncFragment struct {
Expand Down Expand Up @@ -107,7 +107,7 @@ func (np *WarpSyncProofProvider) Generate(start common.Hash) ([]byte, error) {
return nil, errStartBlockNotFinalized
}

authoritySetChanges, err := np.grandpaState.GetAuthoritesChangesFromBlock(beginBlockHeader.Number)
authoritySetChanges, err := np.grandpaState.GetAuthoritiesChangesFromBlock(beginBlockHeader.Number)
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 1edb73b

Please sign in to comment.