Commit Graph

19 Commits

Author SHA1 Message Date
Christopher Goes 94f45311a0 Fix state export/import, add to CI (#2690)
* Update slashing import/export
* More slashing.WriteGenesis
* Add test import/export to CI
* Store equality comparison.
* Fix validator bond intra-tx counter
* Set timeslices for unbonding validators
* WriteGenesis => ExportGenesis
* Delete validators from unbonding queue when re-bonded
* Hook for validator deletion, fix staking genesis tests
2018-11-08 16:28:28 -08:00
Jae Kwon 336415baea
Fix simulation bugs; Incorprates #2676 from Sunny (#2677)
* Fix simulation bugs; Incorprates #2676 from Sunny
* Address review feedback; Update PENDING
2018-11-04 22:11:03 -08:00
Alexander Bezobchuk 50926fffff Update to TM v0.26.0 - Part I (#2679)
* Update to TM v0.26.0
2018-11-04 18:28:38 -08:00
Jae Kwon 0f1fb179c4 Merge PR #2599 from cosmos/jae/dist_refactor
* Rename Pool -> DelRewards; PoolCommission -> ValCommision
* FeePool.Pool -> FeePool.ValPool
* WithdrawalHeight->DelPoolWithdrawalHeight
* OnValidatorBeginUnbonding
* Caught the bug's tail
* Update vi.FeePoolWithdrawalHeight upon bonding
* Fix staking slashUnbondingDelegation bug; fixes simulator failure #9
2018-10-26 13:27:55 +02:00
Jae Kwon f756b40a01 LastValidatorPower is also an Int 2018-10-24 00:04:06 -07:00
Christopher Goes 3d270babc0 Store last total power as sdk.Int, not sdk.Dec 2018-10-23 20:48:50 +02:00
Christopher Goes 306fb8fb6d Address @rigelrozanski comments 2018-10-23 20:33:39 +02:00
Christopher Goes be66a4950e Remove debugging print statements 2018-10-23 15:50:35 +02:00
Jae Kwon fa3730a5d2 WIP looking for bug... 2018-10-22 19:48:28 -07:00
Jae Kwon 1630c0f0f3 WIP intermediate... 2018-10-22 19:02:52 -07:00
Jae Kwon c3008d585b Add more useful logging 2018-10-22 16:24:19 -07:00
rigelrozanski bcc31920f1 correct LastValidatorPower
mistake
2018-10-22 17:17:46 -04:00
Jae Kwon 1cc74320df Replicate Rigel's changes but w/ modifications as discussed + some name changes 2018-10-22 01:46:47 -07:00
Jae Kwon 5416af8a7a LastValidatorPower -> LastValidator 2018-10-21 15:28:14 -07:00
Jae Kwon 015b829a54 GetValidatorsBonded -> LastValidators etc 2018-10-21 15:26:58 -07:00
Jae Kwon 3fa5778921 Update naming (BondedValidatorIndex->ValidatorsBondedIndex) and add some comments 2018-10-21 12:02:45 -07:00
Christopher Goes 7770aec306 Withdraw rewards on bonded to unbonding 2018-10-20 00:13:44 +02:00
Sunny Aggarwal 6c9e71b654 Merge PR #2451: implement validator queue
* unbonding redelegation queue

* address some of bez and chris review

* delete old timeslices from queue

* added Rigel's test case

* added end-time to tags

* fixed bug in staking

* removed prints

* Get -> Queue

* called Endblocker in test

* implement validator queue

* Docs and PENDING

* address federicos comments

* unexposed UnbondingToUnbonded

* no copying unbonded val array to memory
2018-10-14 20:37:06 -04:00
Rigel 324bdaf55d Merge PR #2394: Split up UpdateValidator into distinct state transitions applied only in EndBlock 2018-10-03 18:37:06 +02:00