mirror of
https://github.com/tendermint/tendermint.git
synced 2026-01-05 13:05:09 +00:00
proxy: improve ABCI app connection handling (#5078)
Closes #5074 Old code does not work when --consensus.create_empty_blocks=false (because it only calls tmos.Kill when ApplyBlock fails). New code is listening ABCI clients for Quit and kills TM process if there were any errors.
This commit is contained in:
@@ -1529,11 +1529,7 @@ func (cs *State) finalizeCommit(height int64) {
|
||||
types.BlockID{Hash: block.Hash(), PartSetHeader: blockParts.Header()},
|
||||
block)
|
||||
if err != nil {
|
||||
cs.Logger.Error("Error on ApplyBlock. Did the application crash? Please restart tendermint", "err", err)
|
||||
err := tmos.Kill()
|
||||
if err != nil {
|
||||
cs.Logger.Error("Failed to kill this process - please do so manually", "err", err)
|
||||
}
|
||||
cs.Logger.Error("Error on ApplyBlock", "err", err)
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user