cmd/puppeth: support managing fork block in the chain config

This commit is contained in:
Péter Szilágyi
2017-10-04 12:15:58 +03:00
parent c0a1f1c907
commit edba5e9854
4 changed files with 77 additions and 11 deletions

View File

@ -129,7 +129,7 @@ func (w *wizard) networkStats(tips bool) {
}
}
// If a genesis block was found, load it into our configs
if protips.genesis != "" {
if protips.genesis != "" && w.conf.genesis == nil {
genesis := new(core.Genesis)
if err := json.Unmarshal([]byte(protips.genesis), genesis); err != nil {
log.Error("Failed to parse remote genesis", "err", err)