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: fix some function names #976

Merged
merged 1 commit into from
Aug 16, 2024
Merged
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 api/websocket/messagebuffer/messagebuffer.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ type MessageBuffer struct {
seqId int64 // sequence id
}

// comparation function of red and black tree
// compare function of red and black tree
func compare(a, b interface{}) (res int) {
aInt := a.(int64)
bInt := b.(int64)
Expand Down
2 changes: 1 addition & 1 deletion consensus/proposal.go
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ func (consensus *Consensus) waitAndHandleProposal() (*election.Election, error)
}
}

// startRequestProposal starts the request proposal routine
// startRequestingProposal starts the request proposal routine
func (consensus *Consensus) startRequestingProposal() {
for {
requestProposal := <-consensus.requestProposalChan
Expand Down
2 changes: 1 addition & 1 deletion consensus/state.go
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ func (consensus *Consensus) getVotingNeighborsConsensusState() (map[string]*pb.G
return states, nil
}

// getNeighborsMajorConsensusHeight returns the majority of neighbors' nonzero
// getNeighborsMajorityConsensusState returns the majority of neighbors' nonzero
// consensus height, ledger height, ledger block hash, or empty value if no
// majority can be found
func (consensus *Consensus) getNeighborsMajorityConsensusState() (uint32, uint32, common.Uint256) {
Expand Down
Loading