Browse Source

error if app returned negative last block height (Fixes #911)

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

+ 3
- 0
consensus/replay.go View File

@ -207,6 +207,9 @@ func (h *Handshaker) Handshake(proxyApp proxy.AppConns) error {
}
blockHeight := int64(res.LastBlockHeight)
if blockHeight < 0 {
return fmt.Errorf("Got a negative last block height (%d) from the app", blockHeight)
}
appHash := res.LastBlockAppHash
h.logger.Info("ABCI Handshake", "appHeight", blockHeight, "appHash", fmt.Sprintf("%X", appHash))


Loading…
Cancel
Save