forked from ava-labs/avalanchego
-
Notifications
You must be signed in to change notification settings - Fork 3
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
[DAC] ExcludeMemberProposal #278
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
evlekht
force-pushed
the
evlekht/dac-exclude-c-member
branch
2 times, most recently
from
October 5, 2023 16:39
5de4447
to
def0301
Compare
evlekht
force-pushed
the
evlekht/dac-exclude-c-member
branch
2 times, most recently
from
November 2, 2023 08:36
fcff5c7
to
59d951b
Compare
evlekht
force-pushed
the
evlekht/dac-exclude-c-member
branch
5 times, most recently
from
November 14, 2023 13:46
ea1c855
to
c1422b7
Compare
evlekht
force-pushed
the
evlekht/dac-exclude-c-member
branch
2 times, most recently
from
November 14, 2023 14:17
36ca617
to
fd7ed0e
Compare
knikos
reviewed
Nov 15, 2023
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.
awesome test coverage and test case explanations. thank you!!
evlekht
force-pushed
the
evlekht/dac-exclude-c-member
branch
from
November 16, 2023 13:27
b52d323
to
dd4b282
Compare
knikos
previously approved these changes
Nov 16, 2023
evlekht
force-pushed
the
evlekht/dac-exclude-c-member
branch
from
November 16, 2023 15:44
dd4b282
to
4fdbc57
Compare
knikos
approved these changes
Nov 16, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Why this should be merged
How this works
Exclude member proposal
PR adds new proposal type and corresponding proposals executor and verifier implementations.
If successful, exclude member proposal will do:
BondTxIDsGetter
Because exclude member proposal is capable of unbonding bond other than proposals, finishProposalsTx was extended to use another proposals visitor: BondTxIDsGetter. This visitor is called for successful proposals and will return any additional bond tx ids that should be unlocked along with proposal bonds.
And because finishProposalsTx is system tx that is built by node, txs/builder pkg has to import dac BondTxIDsGetter implementation. In order to avoid cycle dependencies, dac visitors implementations was extracted from txs/executor to their own txs/dac pkg.
Codec
The reason for creating dac codec for proposalState type is that this types actually not used in transaction bodies, so there is no need for this types to pollute txs codec.
Commits
PR consists of 3 commits:
How this was tested
unit-tests, integration tests
Co-authors:
@knikos great help with bondTxIDsGetter improvement