mirror of
https://github.com/tendermint/tendermint.git
synced 2026-02-08 13:00:08 +00:00
Panic on ABCI++ method call failure
Signed-off-by: Thane Thomson <connect@thanethomson.com>
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user