This repository was archived by the owner on Jul 15, 2018. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +8
-8
lines changed
Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ func RandVals(cnt int) []types.Validator {
3333// don't make any tx that modify the validator state
3434func InitKVStore (app * PersistentKVStoreApplication ) {
3535 app .InitChain (types.ParamsInitChain {
36- Validators : RandVals (1 ),
37- GenesisBytes : [] byte ( "[]" ) ,
36+ Validators : RandVals (1 ),
37+ GenesisFile : types. GenesisFile {} ,
3838 })
3939}
Original file line number Diff line number Diff line change @@ -20,8 +20,8 @@ func InitChain(client abcicli.Client) error {
2020 vals [i ] = & v
2121 }
2222 _ , err := client .InitChainSync (types.RequestInitChain {
23- Validators : vals ,
24- GenesisBytes : [] byte ( "{}" ) ,
23+ Validators : vals ,
24+ GenesisFile : & types. GenesisFile {} ,
2525 })
2626 if err != nil {
2727 fmt .Printf ("Failed test: InitChain - %v\n " , err )
Original file line number Diff line number Diff line change @@ -30,8 +30,8 @@ func ToParamsSetOption(req RequestSetOption) ParamsSetOption {
3030}
3131
3232type ParamsInitChain struct {
33- Validators []Validator `json:"validators"`
34- GenesisBytes [] byte `json:"genesis_bytes,omitempty"`
33+ Validators []Validator `json:"validators"`
34+ GenesisFile GenesisFile `json:"genesis_bytes,omitempty"`
3535}
3636
3737func ToParamsInitChain (req RequestInitChain ) ParamsInitChain {
@@ -41,8 +41,8 @@ func ToParamsInitChain(req RequestInitChain) ParamsInitChain {
4141 vals [i ] = * v
4242 }
4343 return ParamsInitChain {
44- Validators : vals ,
45- GenesisBytes : req .GenesisBytes ,
44+ Validators : vals ,
45+ GenesisFile : * req .GenesisFile ,
4646 }
4747}
4848
You can’t perform that action at this time.
0 commit comments