From e88539fe90bd177f51cb9560215df6831219d183 Mon Sep 17 00:00:00 2001 From: Devon Bear Date: Mon, 9 Oct 2023 07:10:36 -0400 Subject: [PATCH] feat(baseapp): expose `Mempool` (#17954) (cherry picked from commit 68a136b48d2a3418ddcd86f560d167c523c46804) # Conflicts: # baseapp/baseapp.go --- baseapp/baseapp.go | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/baseapp/baseapp.go b/baseapp/baseapp.go index 7c82ff493dee..aa67b7e710c2 100644 --- a/baseapp/baseapp.go +++ b/baseapp/baseapp.go @@ -351,6 +351,24 @@ func (app *BaseApp) LastBlockHeight() int64 { return app.cms.LastCommitID().Version } +<<<<<<< HEAD +======= +// ChainID returns the chainID of the app. +func (app *BaseApp) ChainID() string { + return app.chainID +} + +// AnteHandler returns the AnteHandler of the app. +func (app *BaseApp) AnteHandler() sdk.AnteHandler { + return app.anteHandler +} + +// Mempool returns the Mempool of the app. +func (app *BaseApp) Mempool() mempool.Mempool { + return app.mempool +} + +>>>>>>> 68a136b48 (feat(baseapp): expose `Mempool` (#17954)) // Init initializes the app. It seals the app, preventing any // further modifications. In addition, it validates the app against // the earlier provided settings. Returns an error if validation fails.