fix: Use defaults for missing state config fields

Closes #890.
This commit is contained in:
teor 2020-08-20 12:24:03 +10:00
parent 991c70723a
commit f88d324911
1 changed files with 1 additions and 1 deletions

View File

@ -44,7 +44,7 @@ const MAX_BLOCK_REORG_HEIGHT: block::Height = block::Height(MIN_TRASPARENT_COINB
/// Configuration for the state service.
#[derive(Clone, Debug, Deserialize, Serialize)]
#[serde(deny_unknown_fields)]
#[serde(deny_unknown_fields, default)]
pub struct Config {
/// The root directory for storing cached data.
///