From 57edc0f3cea45013ae7e17432f7eefbc41def324 Mon Sep 17 00:00:00 2001 From: Jimmy Chen Date: Tue, 26 Sep 2023 22:48:32 +1000 Subject: [PATCH] Add `serde(default)` to `max_per_epoch_activation_churn_limit` in spec config so that VC is compatible to older BN versions. (#4783) --- consensus/types/src/chain_spec.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/consensus/types/src/chain_spec.rs b/consensus/types/src/chain_spec.rs index 0a1dc5c916f..6562dc00ae5 100644 --- a/consensus/types/src/chain_spec.rs +++ b/consensus/types/src/chain_spec.rs @@ -1019,6 +1019,7 @@ pub struct Config { ejection_balance: u64, #[serde(with = "serde_utils::quoted_u64")] min_per_epoch_churn_limit: u64, + #[serde(default)] #[serde(with = "serde_utils::quoted_u64")] max_per_epoch_activation_churn_limit: u64, #[serde(with = "serde_utils::quoted_u64")]