From 31327c7428893502e413809993ef5706bb6cd856 Mon Sep 17 00:00:00 2001 From: javiersuweijie Date: Thu, 21 Mar 2024 22:51:29 +0800 Subject: [PATCH] added more logs --- baseapp/abci_utils.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/baseapp/abci_utils.go b/baseapp/abci_utils.go index 4d00ce4eb473..d4bea7f6c60a 100644 --- a/baseapp/abci_utils.go +++ b/baseapp/abci_utils.go @@ -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} } @@ -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} } }