Skip to content

Commit

Permalink
chore: fix some function names
Browse files Browse the repository at this point in the history
Signed-off-by: mountdisk <[email protected].>
  • Loading branch information
mountdisk authored and yilunzhang committed Aug 16, 2024
1 parent c2862f2 commit c6185d7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
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

0 comments on commit c6185d7

Please sign in to comment.