cosmos-sdk/x/stake/types
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
..
codec.go Merge PR #2405: Unbonding and Redelegations Queue 2018-10-08 06:43:47 +02:00
commission.go Make the simulator create the new comission rate sensibly 2018-11-04 15:55:07 -08:00
delegation.go Add a flag to export for zero-height start (#2827) 2018-11-26 04:21:23 -08:00
delegation_test.go Fix linter errors 2018-09-03 07:58:57 -07:00
errors.go blockly minting (#2825) 2018-11-26 04:13:47 -08:00
genesis.go Working on stake import/export 2018-11-13 15:08:14 +01:00
msg.go Merge PR #2714: Add commission data to MsgCreateValidator signature bytes 2018-11-07 13:55:59 +01:00
msg_test.go Add Safety Measures to Coin/Coins (#2797) 2018-11-20 01:22:35 -08:00
params.go Merge pull request #2761 from WALL-E/patch-1 2018-11-12 12:21:31 -08:00
params_test.go Merge PR #1492: Improve Module Test Coverage 2018-07-04 06:21:36 +02:00
pool.go Update to TM v0.26.0 - Part I (#2679) 2018-11-04 18:28:38 -08:00
pool_test.go Merge pull request #1819: rational -> decimal 2018-08-14 20:15:02 -04:00
test_utils.go Merge PR #2040: Refactor Validator Account Types/Bech32 Prefixing 2018-08-31 00:06:44 -04:00
validator.go Fix simulation bugs; Incorprates #2676 from Sunny (#2677) 2018-11-04 22:11:03 -08:00
validator_test.go Merge PR #2527: Minting 2018-10-19 20:36:00 +02:00