-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
R4R: Ensure Tendermint Validator Update Invariants - Part II (#2298)
* Add a unit test showing invalid TM validator updates with bonded vals * Re-add defensive check in UpdateBondedValidators for jailed validators * Cleanup and set bond height in keeper#bondValidator * Get pool after getting context with new block height in unit test * Fix broken unit tests * Update prevBonded value * Rename validator to oldValidator in bondIncrement
- Loading branch information
1 parent
ebb2b2e
commit f7f20f1
Showing
2 changed files
with
95 additions
and
22 deletions.
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