From b6560079636c9bedd3408bdcf0f359c742b7d9df Mon Sep 17 00:00:00 2001 From: Michael Sproul Date: Tue, 11 Jan 2022 05:33:29 +0000 Subject: [PATCH] Skip serializing proposer boost if null (#2899) ## Issue Addressed Restore compatibility between Lighthouse v2.0.1 VC and `unstable` BN in preparation for the next release. ## Proposed Changes * Don't serialize the `PROPOSER_SCORE_BOOST` as `null` because it breaks the `extra_fields: HashMap` used by the v2.0.1 VC. --- 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 68a5175a91..70845877d9 100644 --- a/consensus/types/src/chain_spec.rs +++ b/consensus/types/src/chain_spec.rs @@ -659,6 +659,7 @@ pub struct Config { #[serde(with = "eth2_serde_utils::quoted_u64")] churn_limit_quotient: u64, + #[serde(skip_serializing_if = "Option::is_none")] proposer_score_boost: Option>, #[serde(with = "eth2_serde_utils::quoted_u64")]