cosmos-sdk/server
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
..
config Merge PR #2524: Replace GenTx with StdTx 2018-10-19 20:00:27 +02:00
mock New genesis workflow (#2602) 2018-11-04 20:26:46 -08:00
constructors.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
init.go Change gas & related fields to unsigned integer type (#2839) 2018-11-19 09:13:45 -08:00
start.go Update to TM v0.26.0 - Part I (#2679) 2018-11-04 18:28:38 -08:00
test_helpers.go Merge PR #2524: Replace GenTx with StdTx 2018-10-19 20:00:27 +02:00
tm_cmds.go Use correct Bech32 prefix for show-address command (#2746) 2018-11-11 23:34:50 -08:00
util.go R4R: Remove AppInit (#2801) 2018-11-15 10:01:19 -08:00
util_test.go Merge PR #2324: rename wire to codec 2018-09-13 14:17:32 -04:00