fix(runtime): PreBlocker getting overwritten if set as a baseapp option (backport #17944) (#18046)

Co-authored-by: Facundo Medica <14063057+facundomedica@users.noreply.github.com>
This commit is contained in:
mergify[bot]
2023-10-10 15:35:12 +00:00
committed by GitHub
co-authored by Facundo Medica
parent 735c14397a
commit 08936710ee
4 changed files with 8 additions and 3 deletions
+4
View File
@@ -158,6 +158,10 @@ func (app *BaseApp) SetInitChainer(initChainer sdk.InitChainer) {
app.initChainer = initChainer
}
func (app *BaseApp) PreBlocker() sdk.PreBlocker {
return app.preBlocker
}
func (app *BaseApp) SetPreBlocker(preBlocker sdk.PreBlocker) {
if app.sealed {
panic("SetPreBlocker() on sealed BaseApp")