From 76071fcc274a3b21db1cb6c13bab82e862c7afd4 Mon Sep 17 00:00:00 2001 From: Michael Sproul Date: Sun, 23 Oct 2022 11:01:48 +1100 Subject: [PATCH] Fix validator serialization --- consensus/types/src/validator.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/consensus/types/src/validator.rs b/consensus/types/src/validator.rs index 35747fa414..377561e454 100644 --- a/consensus/types/src/validator.rs +++ b/consensus/types/src/validator.rs @@ -13,9 +13,11 @@ const NUM_FIELDS: usize = 8; /// Information about a `BeaconChain` validator. #[cfg_attr(feature = "arbitrary-fuzz", derive(arbitrary::Arbitrary))] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize, Encode, Decode, TestRandom)] -// FIXME(sproul): fix serialize/deserialize impl +#[serde(deny_unknown_fields)] pub struct Validator { + #[serde(flatten)] pub immutable: Arc, + #[serde(flatten)] pub mutable: ValidatorMutable, }