From 1ac992582f9c57e36e9696c59095959c6288cfc8 Mon Sep 17 00:00:00 2001 From: Adam Tucker Date: Mon, 17 Jun 2024 17:20:16 -0600 Subject: [PATCH] add prints --- baseapp/abci.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/baseapp/abci.go b/baseapp/abci.go index ef17ecc0a72a..b5c44f1a7645 100644 --- a/baseapp/abci.go +++ b/baseapp/abci.go @@ -412,9 +412,12 @@ func (app *BaseApp) DeliverTx(req abci.RequestDeliverTx) (res abci.ResponseDeliv return sdkerrors.ResponseDeliverTxWithEvents(err, gInfo.GasWanted, gInfo.GasUsed, sdk.MarkEventsToIndex(anteEvents, app.indexEvents), app.trace) } + fmt.Println("DeliverTx") if sdk.MaxEventSize > 0 { + fmt.Println("sdk.MaxEventSize > 0", sdk.MaxEventSize) for _, event := range result.Events { for _, attr := range event.Attributes { + fmt.Println("lengths", len([]byte(attr.Key)), len([]byte(attr.Value))) if len([]byte(attr.Key))+len([]byte(attr.Value)) > sdk.MaxEventSize { attr.Value = "evt val too large, inc max-event-size in config.toml" }