-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
R4R: Outstanding per-validator rewards; correctly handle same-BeginBlock redelegation-double-slash #3750
Merged
Merged
R4R: Outstanding per-validator rewards; correctly handle same-BeginBlock redelegation-double-slash #3750
Changes from all commits
Commits
Show all changes
58 commits
Select commit
Hold shift + click to select a range
da12165
Add altered random number generation
cwgoes b7d1d69
WIP Allow undelegation of more coins than delegated; Add more validit…
jaekwon 2f9a0da
Fix tests
jaekwon c938039
Revert "Fix tests"
jaekwon 066e11f
fix tests
jaekwon f7c3cc6
Add comment on new behavior
jaekwon 637902d
Call AddCoins conditionally
jaekwon 71774b8
Do not panic with unknown evidence
jaekwon d9b5071
update comments from bez's branch
jaekwon 0c0b142
fixing more sim issues
jaekwon aca59ac
Ignore unknown proposer
jaekwon 002e49f
Add bias to return 0 to RandomAmount
jaekwon 89e84f5
Negative coins amount during fees distribution
hleb-albau d25f793
Truncate multiplication & division; add back old testcase
cwgoes c388d00
PENDING.md
cwgoes 02b076f
Address @alexanderbez comments
cwgoes 1861c97
Merge branch 'develop' into cwgoes/alternative-negative-coins-fix
cwgoes 7972df8
Merge branch 'cwgoes/alternative-negative-coins-fix' into cwgoes/back…
cwgoes 8ff6302
Debugging...
cwgoes 4e15d33
More debugging...
cwgoes f29bbae
Moar debugging
cwgoes 72a850e
...
cwgoes 1c57f32
...
cwgoes ed989af
Outstanding per-validator
cwgoes 4dd5f14
Naming; genesis fix, ...
cwgoes e8b83e2
Merge branch 'cwgoes/back-to-truncation' into cwgoes/outstanding-per-…
cwgoes f4e2c66
..
cwgoes f312638
..
cwgoes 4b1a338
Merge branch 'develop' into cwgoes/outstanding-per-validator
cwgoes 79809ee
Cleanup, separate out invariant changes
cwgoes e434724
Fixes
cwgoes 9e1a4e4
Testcase fixes
cwgoes bf9c168
Fixup outstanding-rewards REST
cwgoes db5c799
Naming agreement; swagger.yaml update
cwgoes a9a72d1
Remove unused param
cwgoes bc26e22
Fix hook
cwgoes 713e7b6
Fix linter
cwgoes 38bb5e1
Add outstanding to community pool
cwgoes 93f0556
...
cwgoes ea06e12
...
cwgoes 7d02f1b
Correctly calculate effective slash fraction
cwgoes 132b30f
Maximum of the slash fractions
cwgoes 280d9f4
Sanity check
cwgoes 0bc856e
Sanity check; on the right track
cwgoes 77959f5
Fix it
cwgoes 094ae45
Merge pull request #3766 from cosmos/cwgoes/debugging-contd
cwgoes 66f44f9
Fix linter
cwgoes ead8a2f
Merge branch 'cwgoes/outstanding-per-validator' of github.com:cosmos/…
cwgoes 1d47060
exapand decimal tests
rigelrozanski 9360b08
Testcase fixes
cwgoes 96bf7e9
Fix stake calculation ordering
cwgoes 37311ca
Address @rigelrozanski comments
cwgoes 4c1fd17
comment
rigelrozanski 86763f8
Address @jaekwon comments
cwgoes 56b2b04
Merge branch 'cwgoes/outstanding-per-validator' of github.com:cosmos/…
cwgoes afdac45
Merge PR #3788: F1 mechanism rounding fix
rigelrozanski 31cd44d
Merge branch 'develop' into cwgoes/outstanding-per-validator
cwgoes 1217373
Update PENDING.md
cwgoes 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
There are no files selected for viewing
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
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
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
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
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
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
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
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
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
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
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
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
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.
instead of doing this, since multiplication/division is expensive, i think we can do:
((d.Int + (precisionReuse-1)) * precisionReuse) / d2.Int
then we wouldn't need chopPrecisionAndRoundUp.
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.
let's do that, but in a separate PR - #3812