mirror of
https://github.com/fluencelabs/tendermint
synced 2025-07-31 04:01:55 +00:00
protect ourselves again underflow (Refs #911)
This commit is contained in:
committed by
Ethan Buchman
parent
86af889dfb
commit
f1fbf995f7
@@ -697,6 +697,7 @@ func (cs *ConsensusState) enterNewRound(height uint64, 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 uint64) bool {
|
||||
if height == 1 {
|
||||
return true
|
||||
|
Reference in New Issue
Block a user