mirror of
https://github.com/fluencelabs/tendermint
synced 2025-05-02 18:12:15 +00:00
* cmd/tendermint: fix initialization file creation checks Fixes #989. The original initialization sequence started to inexplicably fail ```shell tendermint unsafe_reset_all tendermint init tendermint node --proxy_app=dummy ``` used to fail with ```shell ERROR: Failed to create node: Couldn't read GenesisDoc file: open /Users/emmanuelodeke/.tendermint/genesis.json: no such file or directory ``` because the initialization sequence always assumed that the genesisDoc would only be set if the privValidator was generated. However, `tendermint unsafe_reset_all` only created the `priv_validator.json` file which would mean that then running `tendermint init` would never create the `genesis.json` file which if following the recommended sequence would then fail since the `genesis.json` was absent. * cmd/tendermint: Load PrivValidatorFS if existent, lest generate it Feedback from @melekes * change logging messages for init cmd Refs #989