mirror of
https://github.com/sigp/lighthouse.git
synced 2026-05-07 16:55:46 +00:00
Quote BeaconState::proposer_lookahead in JSON repr (#8167)
Use quoted integers for `state.proposer_lookahead` when serializing JSON. This is standard for all integer fields, but was missed for the newly added proposer lookahead. I noticed this issue while inspecting the head state on a local devnet. I'm glad we found this before someone reported it :P Co-Authored-By: Michael Sproul <michael@sigmaprime.io>
This commit is contained in:
@@ -592,6 +592,7 @@ where
|
|||||||
#[compare_fields(as_iter)]
|
#[compare_fields(as_iter)]
|
||||||
#[test_random(default)]
|
#[test_random(default)]
|
||||||
#[superstruct(only(Fulu, Gloas))]
|
#[superstruct(only(Fulu, Gloas))]
|
||||||
|
#[serde(with = "ssz_types::serde_utils::quoted_u64_fixed_vec")]
|
||||||
pub proposer_lookahead: Vector<u64, E::ProposerLookaheadSlots>,
|
pub proposer_lookahead: Vector<u64, E::ProposerLookaheadSlots>,
|
||||||
|
|
||||||
// Gloas
|
// Gloas
|
||||||
|
|||||||
Reference in New Issue
Block a user