Skip to content

unsafe-reset-all is not working with default home flag. #9102

@rootwarp

Description

@rootwarp

Tendermint version (use tendermint version or git rev-parse --verify HEAD if installed from source):

0.34.19

~/g/c/build release/v0.45.x > ./simd tendermint version
tendermint: v0.34.19
abci: 0.17.0
blockprotocol: 11
p2pprotocol: 8

ABCI app (name for built-in, URL for self-written if it's publicly available):

N/A

Environment:

  • OS: macOS v12.4
  • Golang: 1.18.1

What happened:

Try to execute <client> tendermint unsafe-reset-all,
then the client try to delete $HOME/data directory.

What you expected to happen:
Tendermint should get default home directory but it can't.

Have you tried the latest version: yes/no
No

How to reproduce it (as minimally and precisely as possible):

  1. Checkout cosmos-sdk(eb032e35b)
  2. make build
  3. ./build/simd init test
  4. ./build/simd tendermint unsafe-reset-all

Logs (paste a small part showing an error (< 10 lines) or link a pastebin, gist, etc. containing more of the log file):

~/g/c/build release/v0.45.x > ./simd tendermint unsafe-reset-all
I[2022-07-27|16:18:33.117] Removed all blockchain history               dir=/Users/rootwarp/data
I[2022-07-27|16:18:33.118] Reset private validator file to genesis state keyFile=/Users/rootwarp/config/priv_validator_key.json stateFile=/Users/rootwarp/data/priv_validator_state.json

Config (you can paste only the changes you've made):
N/A

node command runtime flags:
N/A

Please provide the output from the http://<ip>:<port>/dump_consensus_state RPC endpoint for consensus bugs
N/A

Anything else we need to know:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions