Add ChainID to testnet JSON (closes #773)

This commit is contained in:
Christopher Goes 2018-04-02 16:29:29 +02:00
parent 8412215c16
commit ed54dc43f2
No known key found for this signature in database
GPG Key ID: E828D98232D328D3

View File

@ -21,6 +21,7 @@ type testnetInformation struct {
Account string `json:"account"`
Validator tmtypes.GenesisValidator `json:"validator"`
NodeID p2p.ID `json:"node_id"`
ChainID string `json:"chain_id"`
}
// InitCmd will initialize all files for tendermint,
@ -144,6 +145,7 @@ func (c initCmd) initTendermintFiles(config *cfg.Config, info *testnetInformatio
info.Validator = validator
}
}
info.ChainID = loadedDoc.ChainID
return nil
}