-
Notifications
You must be signed in to change notification settings - Fork 678
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
Add stack-aggregation-increase command #4652
Add stack-aggregation-increase command #4652
Conversation
Adding the `StackAggregationIncreaseCommand` is currently causing the tests to fail. To investigate: - this may be a PoX-4 bug - this may be a command implementation issue
@friedger @moodmosaic @setzeus adding the In case the command is correct, there may be some PoX-4 unexpected behavior. Thank you in advance! |
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.
If the operator uses only one pox-address, this looks good.
Do you reset the reward indices when a new cycle starts?
* Constraints for running this command include: | ||
* - The Operator must have locked STX on behalf of at least one stacker. | ||
* - The PoX address must have partial committed STX. | ||
* - The Reward Cycle Index must be positive. |
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.
The reward cycle index must be one of the returned indexes by the first aggregation commit tx for the pox address.
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.
Yes, I pick it from the list at the generator level, here
@@ -112,6 +112,7 @@ export class StackAggregationCommitAuthCommand implements PoxCommand { | |||
|
|||
const operatorWallet = model.wallets.get(this.operator.stxAddress)!; | |||
operatorWallet.amountToCommit -= committedAmount; | |||
operatorWallet.committedRewCycleIndexes.push(model.nextRewardSetIndex); |
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.
If the wallet is using more than one pox address the index storage should be a map of pox addresses to a list of indexes.
LGTM; should be ready to merge once we address @friedger's comments. |
Merging into |
ee51196
into
feat/pox-4-stateful-property-testing
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
This PR adds the
stack-aggregation-increase
command to the stateful property testing environment. It is part of #4548 and targetsfeat/pox-4-stateful-property-testing
(#4550).