From ed54dc43f2d599fb652bc364846dfd7b443e42c4 Mon Sep 17 00:00:00 2001 From: Christopher Goes Date: Mon, 2 Apr 2018 16:29:29 +0200 Subject: [PATCH] Add ChainID to testnet JSON (closes #773) --- server/init.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server/init.go b/server/init.go index ab4ffcb7a4..4358950811 100644 --- a/server/init.go +++ b/server/init.go @@ -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 }