Skip to content

Commit

Permalink
deletes excess spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
staheri14 committed Aug 16, 2023
1 parent 7bdbf88 commit 04ce8da
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions consensus/state.go
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,7 @@ func (cs *State) OpenWAL(walFile string) (WAL, error) {
return wal, nil
}

// ------------------------------------------------------------
//------------------------------------------------------------
// Public interface for passing messages into the consensus state, possibly causing a state transition.
// If peerID == "", the msg is considered internal.
// Messages are added to the appropriate queue (peer or internal).
Expand Down Expand Up @@ -521,7 +521,7 @@ func (cs *State) SetProposalAndBlock(
return nil
}

// ------------------------------------------------------------
//------------------------------------------------------------
// internal functions for managing the state

func (cs *State) updateHeight(height int64) {
Expand Down Expand Up @@ -716,7 +716,7 @@ func (cs *State) newStep() {
}
}

// -----------------------------------------
//-----------------------------------------
// the main go routines

// receiveRoutine handles messages which may cause state transitions.
Expand Down Expand Up @@ -981,7 +981,7 @@ func (cs *State) handleTxsAvailable() {
}
}

// -----------------------------------------------------------------------------
//-----------------------------------------------------------------------------
// State functions
// Used internally by handleTimeout and handleMsg to make state transitions

Expand Down Expand Up @@ -1733,7 +1733,6 @@ func (cs *State) finalizeCommit(height int64) {
// * cs.Height has been increment to height+1
// * cs.Step is now cstypes.RoundStepNewHeight
// * cs.StartTime is set to when we will start round0.

}

func (cs *State) pruneBlocks(retainHeight int64) (uint64, error) {
Expand Down Expand Up @@ -1840,7 +1839,7 @@ func (cs *State) recordMetrics(height int64, block *types.Block) {
cs.metrics.CommittedHeight.Set(float64(block.Height))
}

// -----------------------------------------------------------------------------
//-----------------------------------------------------------------------------

func (cs *State) defaultSetProposal(proposal *types.Proposal) error {
// Already have one
Expand Down Expand Up @@ -2370,7 +2369,7 @@ func (cs *State) calculatePrevoteMessageDelayMetrics() {
}
}

// ---------------------------------------------------------
//---------------------------------------------------------

func CompareHRS(h1 int64, r1 int32, s1 cstypes.RoundStepType, h2 int64, r2 int32, s2 cstypes.RoundStepType) int {
if h1 < h2 {
Expand Down

0 comments on commit 04ce8da

Please sign in to comment.