cosmos-sdk/x/stake/keeper
Christopher Goes ad121f1498 Add a flag to export for zero-height start (#2827)
Closes #2812

This PR adds the flag --for-zero-height to gaiad export, which runs several alterations to the application state to prepare for restarting a new chain in a consistent fashion.

It also:

* Moves Gaia's export code to cmd/gaia/app/export.go for cleaner separation.
* Fixes an inconsistency where we treated the initChainer as happening at height -1 - it should now happen at height 0, since the first header sent by Tendermint has height 1.
* Runs the runtime invariant checks on start (in initChainer)
* Adds a few auxiliary functions to clear slashing periods
* Removes the Height field from Delegation objects in x/stake, which was not used anywhere
2018-11-26 04:21:23 -08:00
..
_store.md Merge PR #2394: Split up UpdateValidator into distinct state transitions applied only in EndBlock 2018-10-03 18:37:06 +02:00
delegation.go Add a flag to export for zero-height start (#2827) 2018-11-26 04:21:23 -08:00
delegation_test.go Add a flag to export for zero-height start (#2827) 2018-11-26 04:21:23 -08:00
hooks.go Fix state export/import, add to CI (#2690) 2018-11-08 16:28:28 -08:00
keeper.go Only apply validator set updates on initial genesis 2018-11-13 15:38:29 +01:00
keeper_test.go Merge pull request #1819: rational -> decimal 2018-08-14 20:15:02 -04:00
key.go Replicate Rigel's changes but w/ modifications as discussed + some name changes 2018-10-22 01:46:47 -07:00
key_test.go GetValidatorsBonded -> LastValidators etc 2018-10-21 15:26:58 -07:00
params.go Merge PR #2527: Minting 2018-10-19 20:36:00 +02:00
query_utils.go Merge PR #2249: Staking Querier pt1 2018-09-13 17:23:44 -04:00
sdk_types.go blockly minting (#2825) 2018-11-26 04:13:47 -08:00
slash.go Fix simulation bugs; Incorprates #2676 from Sunny (#2677) 2018-11-04 22:11:03 -08:00
slash_test.go Fix simulation bugs; Incorprates #2676 from Sunny (#2677) 2018-11-04 22:11:03 -08:00
test_common.go R4R: Remove unused bank.MsgIssue (and prevent possible panic) (#2855) 2018-11-19 07:42:53 -08:00
val_state_change.go Fix state export/import, add to CI (#2690) 2018-11-08 16:28:28 -08:00
validator.go Fix state export/import, add to CI (#2690) 2018-11-08 16:28:28 -08:00
validator_test.go Fix simulation bugs; Incorprates #2676 from Sunny (#2677) 2018-11-04 22:11:03 -08:00