From ef49524ff8602dc27eaa44dc65c480f34c9bc917 Mon Sep 17 00:00:00 2001 From: Paul Hauner Date: Thu, 14 Oct 2021 02:58:12 +0000 Subject: [PATCH] Quoted altair fields (2.0) (#2712) ## Issue Addressed Resolves #2689 ## Proposed Changes Copy of #2709 so I can appease CI and merge without waiting for @realbigsean to come online. See #2709 for more information. ## Additional Info NA Co-authored-by: realbigsean --- consensus/types/src/beacon_state.rs | 1 + consensus/types/src/participation_flags.rs | 1 + 2 files changed, 2 insertions(+) diff --git a/consensus/types/src/beacon_state.rs b/consensus/types/src/beacon_state.rs index f23b7878be..d4396f494f 100644 --- a/consensus/types/src/beacon_state.rs +++ b/consensus/types/src/beacon_state.rs @@ -266,6 +266,7 @@ where pub finalized_checkpoint: Checkpoint, // Inactivity + #[serde(with = "ssz_types::serde_utils::quoted_u64_var_list")] #[superstruct(only(Altair))] pub inactivity_scores: VariableList, diff --git a/consensus/types/src/participation_flags.rs b/consensus/types/src/participation_flags.rs index 476e7757bb..74c2cf73ba 100644 --- a/consensus/types/src/participation_flags.rs +++ b/consensus/types/src/participation_flags.rs @@ -9,6 +9,7 @@ use tree_hash::{TreeHash, TreeHashType}; #[serde(transparent)] #[cfg_attr(feature = "arbitrary-fuzz", derive(arbitrary::Arbitrary))] pub struct ParticipationFlags { + #[serde(with = "eth2_serde_utils::quoted_u8")] bits: u8, }