Skip to content

Commit

Permalink
feat: add method to access check state in app (#267)
Browse files Browse the repository at this point in the history
  • Loading branch information
forcodedancing authored Aug 14, 2023
1 parent db9421a commit 591476a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions baseapp/baseapp.go
Original file line number Diff line number Diff line change
Expand Up @@ -651,6 +651,12 @@ func (app *BaseApp) getState(mode runTxMode) *state {
}
}

func (app *BaseApp) GetCheckState() *state {
app.checkStateMtx.RLock()
defer app.checkStateMtx.RUnlock()
return app.checkState
}

func (app *BaseApp) getBlockGasMeter(ctx sdk.Context) storetypes.GasMeter {
if maxGas := app.GetMaximumBlockGas(ctx); maxGas > 0 {
return storetypes.NewGasMeter(maxGas)
Expand Down

0 comments on commit 591476a

Please sign in to comment.