cosmos-sdk/cmd/gaia/app
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
..
benchmarks Merge PR #2219: Update to Tendermint 0.24 (except NextValSet offsets) 2018-10-03 17:48:23 +02:00
app.go Add a flag to export for zero-height start (#2827) 2018-11-26 04:21:23 -08:00
app_test.go Add a flag to export for zero-height start (#2827) 2018-11-26 04:21:23 -08:00
export.go Add a flag to export for zero-height start (#2827) 2018-11-26 04:21:23 -08:00
genesis.go Merge PR #2799: Account numbers and sequences to uint64 2018-11-26 12:29:21 +01:00
genesis_test.go Merge branch 'develop' into dev/sim_msg_edit_val 2018-11-07 13:26:00 -08:00
invariants.go Test runtime-assertable invariants every block (#2807) 2018-11-15 13:21:42 -08:00
sim_test.go Add a flag to export for zero-height start (#2827) 2018-11-26 04:21:23 -08:00