-
Notifications
You must be signed in to change notification settings - Fork 129
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
Drop duplicate spawn/stop proposals #155
Comments
@danwt This should be the same behavior regardless of the outcome of the if condition
This brings me to another potential issue. What happens if |
Nice catch re.
|
Yeah, we need to have a look through all the setters and getters and make sure that they can handle edge cases. I've opened an issue #160 |
Of course, this means that if for some reason a consumer chain is removed and the state is not cleaned, that chain cannot join as a consumer chain with the same chainID. This should be handled by #125 though. |
The fix was specified in cosmos/ibc#775 |
For future reference, the final fix proposed in this thread is to disable creation of a duplicate client for an existing consumer chainId. We may also want to error when someone tries to create a governance proposal for new consumer chain with the same chainId, to avoid getting into this state in the first place. |
Is there a way to check gov proposals when they are submitted, like a handler or something? |
Edit: see #155 (comment)
When a proposal gets handled it will be added to a
pending
list ifspawnTime
has not yet passed.I'm suspicious of what might happen if we allow multiple entries in
pending
for a given chain. I cannot think of any situation where this would be beneficial. It could only lead to strange behavior.I think we should ensure that
SetPendingClientInfo
only has at most one entry per chainID and updates the existing entry if it already exists instead of creating a new entry.The text was updated successfully, but these errors were encountered: