-
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
R4R: Aggressive slashing simulation & fixes #2430
Merged
cwgoes
merged 58 commits into
cwgoes/nextvalset
from
cwgoes/aggressive-slashing-simulation
Oct 5, 2018
Merged
Changes from all commits
Commits
Show all changes
58 commits
Select commit
Hold shift + click to select a range
77a0041
Work in progress
cwgoes af1cb43
Isolate iteration issue
cwgoes 546b5f3
Merge branch 'develop' into cwgoes/fix-slashing-period-fetch
cwgoes 19080d0
pulling in issue code
rigelrozanski 6c78ac7
Merge remote-tracking branch 'origin/develop' into rigel/stake-refactor
rigelrozanski 1aa65e4
replace ensureValidatorFound with mustGetValidator
rigelrozanski 8d394f6
split up keeper/validator.go
rigelrozanski 8373329
move validatorByPowerIndexExists from keeper to test file
rigelrozanski b6575bb
reorganizing
rigelrozanski 52c413f
GetValidatorsByPower -> GetBondedValidatorsByPower
rigelrozanski 7debae0
remove duplicate SetValidator in handleMsgEditValidator
rigelrozanski e838a02
Added missing by-power index at validator creation
rigelrozanski 0e91227
removed codebase use of UpdateValidator
rigelrozanski cd9a9fb
SetParams now doesnt update validator set as happens at endblock
rigelrozanski 76f18fd
got non-test code compiling
rigelrozanski eec5f42
Merge branch 'develop' into rigel/stake-refactor
cwgoes 54098df
Remove old code, minor cleanup of existing work
cwgoes 2fa6b1c
Merge branch 'develop' into rigel/stake-refactor
cwgoes b1d6384
Merge branch 'cwgoes/update-tendermint-upstream' into rigel/stake-ref…
cwgoes e2200a2
Fixes from merge
cwgoes 174b321
Pseudocode to real-ish code
cwgoes 715ad04
Remove cliff validator key (no longer used)
cwgoes ba3c1f5
GetTendermintUpdates continued
cwgoes ebc59ae
Works with simulation
cwgoes 09c43d5
Merge branch 'develop' into rigel/stake-refactor
cwgoes cfb12da
Refactor testcases in progress
cwgoes 77c2cc8
Testcase fixes in progress
cwgoes 123bc06
Minor fixes
cwgoes 6d4af75
Testcase fixes contd...
cwgoes d8f2656
Fix slashing tests (just adding stake.EndBlocker calls)
cwgoes a12cda1
Fix more testcases
cwgoes 0c1ddec
Unit tests as far as the eye can see
cwgoes c7cac2d
Update PENDING.md
cwgoes de0decc
Merge branch 'cwgoes/update-tendermint-upstream' into rigel/stake-ref…
cwgoes 7d82281
Address review comments, round one
cwgoes b96faf6
dep update, rename to clarify that function applies state changes
cwgoes dbd2c0a
Split up function for clarity
cwgoes 54d5ce8
Remove jailed validators from the power store entirely
cwgoes 413fa42
Remove redundant bonded validator store
cwgoes 1c1183a
Fix simulator bug
cwgoes 951cacc
Change key name to reflect usage
cwgoes 8e67f6d
updateValidator -> testingUpdateValidator
cwgoes 94b0ca9
'make format'
cwgoes 5893e23
Address @rigelrozanski comments
cwgoes 4102f76
Validator might already be jailed
cwgoes a1c9cd8
Update PENDING.md
cwgoes 3902cf2
Merge branch 'cwgoes/fix-slashing-period-fetch' into cwgoes/aggressiv…
cwgoes b119a54
Use a KVStoreReversePrefixIterator instead
cwgoes 1ad577b
Merge branch 'develop' into rigel/stake-refactor
cwgoes 4a4e9d1
Merge branch 'rigel/stake-refactor' into cwgoes/aggressive-slashing-s…
cwgoes 00e050d
Merge branch 'develop' into cwgoes/aggressive-slashing-simulation
cwgoes 9a4249e
Undo accidental merge changes
cwgoes 9d87707
Merge branch 'develop' into cwgoes/aggressive-slashing-simulation
cwgoes 4c60529
Merge branch 'cwgoes/nextvalset' into cwgoes/aggressive-slashing-simu…
cwgoes a4277ed
Merge branch 'cwgoes/nextvalset' into cwgoes/aggressive-slashing-simu…
cwgoes c50a29b
Height must be stored big-endian (duh)
cwgoes c629be9
Big endian, more simulation seeds
cwgoes 7e59454
More sleep on the multi-sim
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
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.
We probably should randomize this. Also .5 seems a bit too high lol.
Setting a high evidence fraction isn't sufficient tho, since it executes a different code path than liveness (Or in this bloxk) slashes
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.
Doesn't block this PR, it lgtm!