This repository has been archived by the owner on Aug 3, 2023. It is now read-only.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Group spec #14
Group spec #14
Changes from all commits
da00f55
4b12fcd
84783b1
d276d9c
0432517
8705f21
1fc9c09
29e3c15
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just stating the obvious (?)
Can members change their vote within the voting window?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that members should be able to change their vote within the voting window. Does that seem okay?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like this strict rule to start with although I want to highlight a communication issue for the clients. They may see a list of open proposals while some or all of them may be invalidated already.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need to do cleanup somewhere.
I would propose to mark all open proposals as closed when membership changes. We could do it lazy with a special (close proposal) transaction that if it is invalid (too old, changed group) and then trigger a close like that.
Not sure which is preferable, but definitely some way to fix up the ux
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So closing triggered by a change in group membership could potentially have high gas costs.
There could be an
EndBlocker
that takes care of this.For now, I think I will add a
version
field to proposal which specifies the version of the group this is valid for. AGetOpenProposals
query endpoint could then do the filtering for clients based on the current version.Large diffs are not rendered by default.