Skip to content

Commit

Permalink
add prints
Browse files Browse the repository at this point in the history
  • Loading branch information
czarcas7ic committed Jun 17, 2024
1 parent 8a92ab5 commit 1ac9925
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions baseapp/abci.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
Expand Down

0 comments on commit 1ac9925

Please sign in to comment.