Browse Source

make AppOptions an interface{}

pull/721/head
Anton Kaliaev 7 years ago
parent
commit
616b07ff6b
No known key found for this signature in database GPG Key ID: 7B6881D965918214
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      types/genesis.go
  2. +1
    -1
      types/validator_set_test.go

+ 1
- 1
types/genesis.go View File

@ -29,7 +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"`
AppOptions interface{} `json:"app_options,omitempty"`
}
// SaveAs is a utility method for saving GenensisDoc as a JSON file.


+ 1
- 1
types/validator_set_test.go View File

@ -5,8 +5,8 @@ import (
"strings"
"testing"
cmn "github.com/tendermint/tmlibs/common"
"github.com/tendermint/go-crypto"
cmn "github.com/tendermint/tmlibs/common"
)
func randPubKey() crypto.PubKey {


Loading…
Cancel
Save