From 1a3faa8db15b709ad0c32bead06dc23aaef9783c Mon Sep 17 00:00:00 2001 From: Anton Kaliaev Date: Tue, 27 Feb 2018 16:24:55 +0400 Subject: [PATCH] add app_state field to docs --- docs/specification/genesis.rst | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/docs/specification/genesis.rst b/docs/specification/genesis.rst index 7e36c131..5edd1b7b 100644 --- a/docs/specification/genesis.rst +++ b/docs/specification/genesis.rst @@ -5,12 +5,6 @@ The genesis.json file in ``$TMHOME/config`` defines the initial TendermintCore state upon genesis of the blockchain (`see definition `__). -NOTE: This does not (yet) specify the application state (e.g. initial -distribution of tokens). Currently we leave it up to the application to -load the initial application genesis state. In the future, we may -include genesis SetOption messages that get passed from TendermintCore -to the app upon genesis. - Fields ~~~~~~ @@ -26,6 +20,7 @@ Fields - ``app_hash``: The expected application hash (as returned by the ``Commit`` ABCI message) upon genesis. If the app's hash does not match, a warning message is printed. +- ``app_state``: The application state (e.g. initial distribution of tokens). Sample genesis.json ~~~~~~~~~~~~~~~~~~~ @@ -69,5 +64,8 @@ Sample genesis.json "name": "mach4" } ], - "app_hash": "15005165891224E721CB664D15CB972240F5703F" + "app_hash": "15005165891224E721CB664D15CB972240F5703F", + "app_state": { + {"account": "Bob", "coins": 5000} + } }