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
This commit is contained in:
Alessio Treglia 2018-08-27 14:27:18 +01:00 committed by Anton Kaliaev
parent 20e35654c6
commit 5f255f0f71
3 changed files with 4 additions and 2 deletions

View File

@ -26,6 +26,8 @@ IMPROVEMENTS:
- [docs] Lint documentation with `write-good` and `stop-words`.
- [scripts] Added json2wal tool, which is supposed to help our users restore
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:
- [mempool] No longer possible to fill up linked list without getting caching

View File

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

View File

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