diff --git a/core/chain-configs/src/client_config.rs b/core/chain-configs/src/client_config.rs index cacf9d42197..0f8dcf3b40f 100644 --- a/core/chain-configs/src/client_config.rs +++ b/core/chain-configs/src/client_config.rs @@ -114,6 +114,7 @@ pub struct DumpConfig { /// How often to check if a new epoch has started. /// Feel free to set to `None`, defaults are sensible. #[serde(skip_serializing_if = "Option::is_none")] + #[serde(default)] #[serde(with = "near_async::time::serde_opt_duration_as_std")] pub iteration_delay: Option, /// Location of a json file with credentials allowing write access to the bucket. diff --git a/core/chain-configs/src/updateable_config.rs b/core/chain-configs/src/updateable_config.rs index 833315ab160..cd8367a6eaa 100644 --- a/core/chain-configs/src/updateable_config.rs +++ b/core/chain-configs/src/updateable_config.rs @@ -98,6 +98,7 @@ pub struct UpdateableClientConfig { pub resharding_config: ReshardingConfig, /// Time limit for adding transactions in produce_chunk() + #[serde(default)] #[serde(with = "near_async::time::serde_opt_duration_as_std")] pub produce_chunk_add_transactions_time_limit: Option, } diff --git a/nearcore/src/config.rs b/nearcore/src/config.rs index adf0d07b18e..389959fdac6 100644 --- a/nearcore/src/config.rs +++ b/nearcore/src/config.rs @@ -285,6 +285,7 @@ pub struct Config { /// A node produces a chunk by adding transactions from the transaction pool until /// some limit is reached. This time limit ensures that adding transactions won't take /// longer than the specified duration, which helps to produce the chunk quickly. + #[serde(default)] #[serde(with = "near_async::time::serde_opt_duration_as_std")] pub produce_chunk_add_transactions_time_limit: Option, /// Optional config for the Chunk Distribution Network feature.