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 #2180

Open
wants to merge 1 commit into
base: develop
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 consensus/ibft/fork/fork.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ func GetIBFTForks(ibftConfig map[string]interface{}) (IBFTForks, error) {

type IBFTForks []*IBFTFork

// getByFork returns the fork in which the given height is
// getFork returns the fork in which the given height is
// it doesn't use binary search for now because number of IBFTFork is not so many
func (fs *IBFTForks) getFork(height uint64) *IBFTFork {
for idx := len(*fs) - 1; idx >= 0; idx-- {
Expand Down
2 changes: 1 addition & 1 deletion consensus/ibft/fork/hooks.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ func registerUpdateValidatorsHooks(
}
}

// registerPoSVerificationHooks registers that hooks to prevent the last epoch block from having transactions
// registerTxInclusionGuardHooks registers that hooks to prevent the last epoch block from having transactions
func registerTxInclusionGuardHooks(hooks *hook.Hooks, epochSize uint64) {
isLastEpoch := func(height uint64) bool {
return height > 0 && height%epochSize == 0
Expand Down
Loading