Skip to content

Commit

Permalink
Merge pull request #538 from terra-money/log/add-more-logs
Browse files Browse the repository at this point in the history
added more logs
  • Loading branch information
javiersuweijie authored Mar 21, 2024
2 parents 5193d8a + 31327c7 commit 361b96a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions baseapp/abci_utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ func (h *DefaultProposalHandler) ProcessProposalHandler() sdk.ProcessProposalHan
for _, txBytes := range req.Txs {
tx, err := h.txVerifier.ProcessProposalVerifyTx(txBytes)
if err != nil {
ctx.Logger().Error("proposal failed on ProcessProposalVerifyTx", "error", err)
return abci.ResponseProcessProposal{Status: abci.ResponseProcessProposal_REJECT}
}

Expand All @@ -160,6 +161,7 @@ func (h *DefaultProposalHandler) ProcessProposalHandler() sdk.ProcessProposalHan
}

if totalTxGas > uint64(maxBlockGas) {
ctx.Logger().Error("proposal failed on totalTxGas > maxBlockGas", "totalTxGas", totalTxGas, "maxBlockGas", maxBlockGas)
return abci.ResponseProcessProposal{Status: abci.ResponseProcessProposal_REJECT}
}
}
Expand Down

0 comments on commit 361b96a

Please sign in to comment.