Browse Source

remove comments for uint64 related to possible underflow [ci skip]

pull/914/head
Anton Kaliaev 7 years ago
parent
commit
cd5a5d332f
No known key found for this signature in database GPG Key ID: 7B6881D965918214
2 changed files with 0 additions and 2 deletions
  1. +0
    -1
      consensus/replay.go
  2. +0
    -1
      consensus/state.go

+ 0
- 1
consensus/replay.go View File

@ -90,7 +90,6 @@ func (cs *ConsensusState) readReplayMessage(msg *TimedWALMessage, newStepCh chan
// replay only those messages since the last block.
// timeoutRoutine should run concurrently to read off tickChan
// CONTRACT: csHeight > 0
func (cs *ConsensusState) catchupReplay(csHeight int64) error {
// set replayMode
cs.replayMode = true


+ 0
- 1
consensus/state.go View File

@ -697,7 +697,6 @@ func (cs *ConsensusState) enterNewRound(height int64, round int) {
// needProofBlock returns true on the first height (so the genesis app hash is signed right away)
// and where the last block (height-1) caused the app hash to change
// CONTRACT: height > 0
func (cs *ConsensusState) needProofBlock(height int64) bool {
if height == 1 {
return true


Loading…
Cancel
Save