Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

improve log readability #3379

Merged
merged 1 commit into from
Oct 8, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions cmd/gaiad/cmd/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,3 +67,6 @@ This is because `gaiad init` creates a `genesis.json` with a testing chain id.
2. replace all validator key files (keyring data, `priv_validator_key.json`, values in `priv_validator_state.json` are reset to 0...)
3. run `gaiad testnet unsafe-start-local-validator` -> switches the validator set and starts the node

## Optional Cleanup for Log Readability

It's recommended to delete the contents of the data/cs.wal folder (from the mainnet node snapshot) before running the unsafe-start-local-validator command. This folder stores messages used for replaying, which are no longer needed since a new block will be created with the new validator setup. If not deleted, the logs may contain misleading errors related to the old state. While this deletion is not mandatory, it can help improve log readability and reduce confusion during testing.
Loading