Browse Source

Replace db_path with db_dir in default configuration (#2284)

* db_path is not being parsed

Fix default configuration, db_path is now db_dir.

Closes: cosmos/cosmos-sdk#1712

* Update CHANGELOG_PENDING.md
pull/2244/merge
Alessio Treglia 6 years ago
committed by Anton Kaliaev
parent
commit
5f255f0f71
3 changed files with 4 additions and 2 deletions
  1. +2
    -0
      CHANGELOG_PENDING.md
  2. +1
    -1
      config/toml.go
  3. +1
    -1
      docs/tendermint-core/configuration.md

+ 2
- 0
CHANGELOG_PENDING.md View File

@ -26,6 +26,8 @@ IMPROVEMENTS:
- [docs] Lint documentation with `write-good` and `stop-words`. - [docs] Lint documentation with `write-good` and `stop-words`.
- [scripts] Added json2wal tool, which is supposed to help our users restore - [scripts] Added json2wal tool, which is supposed to help our users restore
corrupted WAL files and compose test WAL files (@bradyjoestar) corrupted WAL files and compose test WAL files (@bradyjoestar)
- [config] Replace db_path with db_dir from automatically generated configuration files.
Issue reported to Cosmos SDK ([#1712](https://github.com/cosmos/cosmos-sdk/issues/1712))
BUG FIXES: BUG FIXES:
- [mempool] No longer possible to fill up linked list without getting caching - [mempool] No longer possible to fill up linked list without getting caching


+ 1
- 1
config/toml.go View File

@ -81,7 +81,7 @@ fast_sync = {{ .BaseConfig.FastSync }}
db_backend = "{{ .BaseConfig.DBBackend }}" db_backend = "{{ .BaseConfig.DBBackend }}"
# Database directory # Database directory
db_path = "{{ js .BaseConfig.DBPath }}"
db_dir = "{{ js .BaseConfig.DBPath }}"
# Output level for logging, including package level options # Output level for logging, including package level options
log_level = "{{ .BaseConfig.LogLevel }}" log_level = "{{ .BaseConfig.LogLevel }}"


+ 1
- 1
docs/tendermint-core/configuration.md View File

@ -34,7 +34,7 @@ fast_sync = true
db_backend = "leveldb" db_backend = "leveldb"
# Database directory # Database directory
db_path = "data"
db_dir = "data"
# Output level for logging # Output level for logging
log_level = "state:info,*:error" log_level = "state:info,*:error"


Loading…
Cancel
Save