-
Notifications
You must be signed in to change notification settings - Fork 848
ACP-236: Adding auto-renewed validator support #5092
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
Closed
Closed
Changes from 13 commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
5d1a365
Adding auto-renewed validator support (ACP-236)
rrazvan1 062f435
Create helper function for UTXO creation
rrazvan1 71b408a
Fix complexities
rrazvan1 ed33cec
Add fee tests for new txs
rrazvan1 f5b5c68
Improve GetAutoRenewedValidatorConfigOwners + tests + docs
rrazvan1 04b1f1a
Fix AddRewardUTXO txID
rrazvan1 8223996
Add UTXO input/output assertions in standard executor
rrazvan1 d5d9e64
Fix overflow in auto-renewed validator weight, improve error handling…
rrazvan1 b599d47
Replace time.Now() with genesistest.DefaultValidatorStartTime in test…
rrazvan1 96861d8
Remove SyntacticVerify function from RewardAutoRenewedValidatorTx
rrazvan1 1271eb8
Fix auto-renewed validator API response
rrazvan1 10ff006
Extract abort reward UTXOs into shared helper, add field comments, cl…
rrazvan1 c5407e4
Create helper functions, unexport internal errors and add restake sta…
rrazvan1 7fe939d
Deduplicate reward UTXO creation
rrazvan1 5742f08
Rollback unnecessary changes from old tests + optimize MulDiv
rrazvan1 006bca4
Fix Period overflow + add missing configOwner.Addrs sort
rrazvan1 c452195
Link reward UTXOs to reward tx instead of staker tx + reward utxos as…
rrazvan1 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
Oops, something went wrong.
Oops, something went wrong.
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.
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.
This doesn't require using
big.Intas thebitspackage provides full-precision alternatives. ThedivRound()function becomes redundant too.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.
nice suggestion! For now, I will update with your approach and we can still consider the way we calculate it as an open discussion if there are better ideas out there.