Skip to content

Commit d004b2b

Browse files
mergify[bot]johnleteyaljo242
authored
fix(baseapp): index pre-block events (backport #25642) (#25644)
Co-authored-by: John Letey <[email protected]> Co-authored-by: aljo242 <[email protected]>
1 parent c625f47 commit d004b2b

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ Ref: https://keepachangelog.com/en/1.0.0/
4444

4545
### Bug Fixes
4646

47+
* (baseapp) [#25642](https://github.com/cosmos/cosmos-sdk/pull/25642) Mark pre-block events for indexing based on local configuration.
4748
* (baseapp) [#23879](https://github.com/cosmos/cosmos-sdk/pull/23879) Ensure finalize block response is not empty in the defer check of FinalizeBlock to avoid panic by nil pointer.
4849
* (query) [#23884](https://github.com/cosmos/cosmos-sdk/pull/23884) Fix NPE in query pagination.
4950

baseapp/baseapp.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -722,6 +722,7 @@ func (app *BaseApp) preBlock(req *abci.RequestFinalizeBlock) ([]abci.Event, erro
722722
app.finalizeBlockState.SetContext(ctx)
723723
}
724724
events = ctx.EventManager().ABCIEvents()
725+
events = sdk.MarkEventsToIndex(events, app.indexEvents)
725726
}
726727
return events, nil
727728
}

0 commit comments

Comments
 (0)