-
Notifications
You must be signed in to change notification settings - Fork 103
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
[x/group] Try to execute proposal on submission #288
Comments
@clevinson and I were talking about this issue and we were wondering what should be the behavior in the following use case:
cc/ @aaronc |
My understanding, based on: regen-network/cosmos-modules#53, is that:
So, by the spec, the transaction should fail if it can't execute immediately. Hence we won't store the votes. However we may consider modifying the spec, and use variant flag:
If |
My understanding is rather that when creating a new proposal, the signers of the
Yes, that would make sense. Any thoughts @aaronc @clevinson? |
I've been thinking through it a little bit, and I'm wondering if this On another note, adding a new msg just for this, eg |
I'm also more in favor of doing only |
I don't have a strong preference but the use case I'm considering is when a user has all the voting power signing a single transaction to propose, vote and execute all at once. But, I don't think there's harm in trying to execute all at once and instead storing the votes for further approval if that fails. It seems like that behavior would save the round trip of querying what the current voting power is and deciding conditionally based on that. So my original design was always "try exec" rather than "must exec". Also I would just note that I believe there should be a "try exec" option both on submit proposal and on vote. So I guess my preference is generally "try exec" vs "must exec". I'm not sure why the proposer would want to just give up if they don't have enough voting power. But I'm open to counter-arguments. |
@aaronc Yes your points make sense. So we would basically add the "try exec" option to both |
Exactly |
I thought that the main use-case is to execute immediately in [...] an atomic transaction - so that's why I proposed to have We can always start with one option and implement other later if we want to limit the scope. |
We could add some
tryExec
flag to try to execute a proposal on submission.ref: regen-network/cosmos-modules#53
The text was updated successfully, but these errors were encountered: