add app_options to GenesisDoc (Refs #564)

This commit is contained in:
Anton Kaliaev
2017-10-05 12:02:02 +04:00
parent 6469e2ccca
commit 321061125f
2 changed files with 3 additions and 2 deletions

View File

@@ -7,7 +7,7 @@ import (
"github.com/pkg/errors"
"github.com/tendermint/go-crypto"
crypto "github.com/tendermint/go-crypto"
"github.com/tendermint/go-wire/data"
cmn "github.com/tendermint/tmlibs/common"
)
@@ -29,6 +29,7 @@ type GenesisDoc struct {
ConsensusParams *ConsensusParams `json:"consensus_params,omitempty"`
Validators []GenesisValidator `json:"validators"`
AppHash data.Bytes `json:"app_hash"`
AppOptions *json.RawMessage `json:"app_options,omitempty"`
}
// SaveAs is a utility method for saving GenensisDoc as a JSON file.