Panic on ABCI++ method call failure

Signed-off-by: Thane Thomson <connect@thanethomson.com>
This commit is contained in:
Thane Thomson
2022-03-28 11:40:36 -04:00
parent cbe85608cb
commit 01b6a4f2d5

View File

@@ -319,7 +319,7 @@ func (blockExec *BlockExecutor) ExtendVote(ctx context.Context, vote *types.Vote
resp, err := blockExec.appClient.ExtendVote(ctx, req)
if err != nil {
return nil, err
panic(fmt.Errorf("ExtendVote call failed: %w", err))
}
return resp.VoteExtension, nil
}
@@ -334,7 +334,7 @@ func (blockExec *BlockExecutor) VerifyVoteExtension(ctx context.Context, vote *t
resp, err := blockExec.appClient.VerifyVoteExtension(ctx, req)
if err != nil {
return err
panic(fmt.Errorf("VerifyVoteExtension call failed: %w", err))
}
if !resp.IsOK() {