Skip to content

Commit

Permalink
feat: add method to access check state in app
Browse files Browse the repository at this point in the history
  • Loading branch information
forcodedancing committed Aug 10, 2023
1 parent 7861c1d commit 9ad9233
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 9ad9233

Please sign in to comment.