Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement ctx.IsPrepareProposal and ctx.IsProcessProposal #417

Open
rootulp opened this issue Oct 17, 2024 · 0 comments
Open

Implement ctx.IsPrepareProposal and ctx.IsProcessProposal #417

rootulp opened this issue Oct 17, 2024 · 0 comments

Comments

@rootulp
Copy link
Collaborator

rootulp commented Oct 17, 2024

Motivation

Discussion w/ @evan-forbes

Context

The SDK ctx has these methods:

func (c Context) IsCheckTx() bool { return c.checkTx }
func (c Context) IsReCheckTx() bool { return c.recheckTx }

Problem

The SDK ctx doesn't have methods to determine if the ctx is inside PrepareProposal or ProcessProposal

Proposal

Add methods for IsPrepareProposal and IsProcessProposal.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant