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, }