Cleanup, add stub for VerifyCommitAny

This commit is contained in:
Jae Kwon
2017-01-29 13:50:53 -08:00
parent 846e6d3bda
commit 67ab574e98
4 changed files with 37 additions and 9 deletions
+5 -2
View File
@@ -34,9 +34,12 @@ func run_node(config cfg.Config) {
if err != nil {
Exit(Fmt("Couldn't read GenesisDoc file: %v", err))
}
genDoc := types.GenesisDocFromJSON(jsonBlob)
genDoc, err := types.GenesisDocFromJSON(jsonBlob)
if err != nil {
Exit(Fmt("Error reading GenesisDoc: %v", err))
}
if genDoc.ChainID == "" {
PanicSanity(Fmt("Genesis doc %v must include non-empty chain_id", genDocFile))
Exit(Fmt("Genesis doc %v must include non-empty chain_id", genDocFile))
}
config.Set("chain_id", genDoc.ChainID)
}