-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
[Multisig V2] Implemented the implicit voting for multisig transaction execution and rejection #11941
Conversation
⏱️ 4h 8m total CI duration on this PR
🚨 1 job on the last run was significantly faster/slower than expected
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #11941 +/- ##
=======================================
Coverage 64.0% 64.0%
=======================================
Files 803 803
Lines 178181 178181
=======================================
Hits 114043 114043
Misses 64138 64138 ☔ View full report in Codecov by Sentry. |
caeb7db
to
c47876f
Compare
I updated the code to override any previous votes and included such a scenario in the unit test. |
That's a good point! Voting records are removed from the Table:
However, events will remain. So, I updated the code to correctly emit |
aptos-move/framework/aptos-framework/sources/multisig_account.move
Outdated
Show resolved
Hide resolved
aptos-move/framework/aptos-framework/sources/multisig_account.move
Outdated
Show resolved
Hide resolved
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.
Can you see if we can do this for implicit rejection as well?
c47876f
to
6795736
Compare
if (!has_voted_for_rejection(multisig_account, sequence_number, owner)) { | ||
num_rejections = num_rejections + 1; | ||
}; |
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.
Isn't this saying if the owner has not voted for rejection, increment number of rejections?
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.
@JohnChangUK , right, "+1" is the implicit vote. The "execute" operation will involve an implicit vote for approval, and the "execute-reject" operation will involve an implicit vote for rejection. This feature is requested by #11011.
@movekevin , this line is doing implicit rejections: https://github.com/aptos-labs/aptos-core/pull/11941/files#diff-cded52b0ab3d00d8edcfab232ce1f48c8f3b5a1f1485b2b8c40f6e49147967c9R896 |
6795736
to
af02259
Compare
…d rejection To simplify the Multisig v2 transaction execution workflow and minimize the required number of transactions, this implemented the implicit voting as follows: - Count it as an implicit approval upon transaction execution - Count it as an implicit rejection upon "rejection execution"
af02259
to
93d4766
Compare
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
✅ Forge suite
|
✅ Forge suite
|
Description
To simplify the Multisig v2 transaction execution workflow and minimize the required number of transactions, this implemented implicit voting as follows:
This resolves #11011.
Test Plan
aptos move test