fix(baseapp): index pre-block events (#25642)

This commit is contained in:
John Letey 2025-12-04 12:58:45 -05:00 committed by GitHub
parent 0cd5a6819c
commit 0e1f43c8f1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 0 deletions

View File

@ -88,6 +88,7 @@ Ref: https://keepachangelog.com/en/1.0.0/
* [GHSA-p22h-3m2v-cmgh](https://github.com/cosmos/cosmos-sdk/security/advisories/GHSA-p22h-3m2v-cmgh) Fix x/distribution can halt when historical rewards overflow.
* (x/staking) [#25258](https://github.com/cosmos/cosmos-sdk/pull/25258) Add delegator address to redelegate event.
* (cli) [#25485](https://github.com/cosmos/cosmos-sdk/pull/25485) Avoid failed to convert address field in `withdraw-validator-commission` cmd.
* (baseapp) [#25642](https://github.com/cosmos/cosmos-sdk/pull/25642) Mark pre-block events for indexing based on local configuration.
### Deprecated

View File

@ -670,6 +670,7 @@ func (app *BaseApp) preBlock(req *abci.RequestFinalizeBlock) ([]abci.Event, erro
finalizeState.SetContext(ctx)
}
events = ctx.EventManager().ABCIEvents()
events = sdk.MarkEventsToIndex(events, app.indexEvents)
}
return events, nil
}