Merge pull request #1559: Inconsistent Genesis Generation Key Order

This commit is contained in:
Aleksandr Bezobchuk
2018-07-05 14:15:00 -04:00
parent 1d12985e56
commit 51fdc9db2f
4 changed files with 25 additions and 27 deletions
+6 -2
View File
@@ -29,20 +29,24 @@ func CoolAppGenState(cdc *wire.Codec, appGenTxs []json.RawMessage) (appState jso
if err != nil {
return
}
key := "cool"
value := json.RawMessage(`{
"trend": "ice-cold"
}`)
appState, err = server.AppendJSON(cdc, appState, key, value)
appState, err = server.InsertKeyJSON(cdc, appState, key, value)
if err != nil {
return
}
key = "pow"
value = json.RawMessage(`{
"difficulty": 1,
"count": 0
}`)
appState, err = server.AppendJSON(cdc, appState, key, value)
appState, err = server.InsertKeyJSON(cdc, appState, key, value)
return
}