cosmos-sdk/x/stake
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
..
client Merge PR #2874: gaiad gentx subcommands refactoring 2018-11-22 00:44:13 +01:00
keeper Add a flag to export for zero-height start (#2827) 2018-11-26 04:21:23 -08:00
querier Merge PR #2869: Gov tally endpoint 2018-11-21 10:54:51 +01:00
simulation blockly minting (#2825) 2018-11-26 04:13:47 -08:00
tags Merge PR #2405: Unbonding and Redelegations Queue 2018-10-08 06:43:47 +02:00
types Add a flag to export for zero-height start (#2827) 2018-11-26 04:21:23 -08:00
app_test.go Merge PR #2799: Account numbers and sequences to uint64 2018-11-26 12:29:21 +01:00
genesis_test.go Fix state export/import, add to CI (#2690) 2018-11-08 16:28:28 -08:00
genesis.go Add a flag to export for zero-height start (#2827) 2018-11-26 04:21:23 -08:00
handler_test.go Add a flag to export for zero-height start (#2827) 2018-11-26 04:21:23 -08:00
handler.go Fix simulation bugs; Incorprates #2676 from Sunny (#2677) 2018-11-04 22:11:03 -08:00
stake.go use newQuery...Params 2018-11-12 23:12:25 +01:00
test_common.go Merge PR #2752: Don't hardcode bondable denom 2018-11-12 19:54:18 +01:00