test blockExec does not panic if all vals removed (#3241)

Fix for #3224
Also address #2084
This commit is contained in:
Anca Zamfir
2019-02-12 09:02:44 +04:00
committed by Anton Kaliaev
parent b089587b42
commit 8a9eecce7f
2 changed files with 28 additions and 3 deletions
+1 -3
View File
@@ -8,7 +8,6 @@ import (
amino "github.com/tendermint/go-amino"
cmn "github.com/tendermint/tendermint/libs/common"
"github.com/tendermint/tendermint/libs/log"
"github.com/tendermint/tendermint/p2p"
sm "github.com/tendermint/tendermint/state"
@@ -338,8 +337,7 @@ FOR_LOOP:
state, err = bcR.blockExec.ApplyBlock(state, firstID, first)
if err != nil {
// TODO This is bad, are we zombie?
cmn.PanicQ(fmt.Sprintf("Failed to process committed block (%d:%X): %v",
first.Height, first.Hash(), err))
panic(fmt.Sprintf("Failed to process committed block (%d:%X): %v", first.Height, first.Hash(), err))
}
blocksSynced++