mirror of
https://github.com/sigp/lighthouse.git
synced 2026-05-07 00:42:42 +00:00
Fix validator serialization
This commit is contained in:
@@ -13,9 +13,11 @@ const NUM_FIELDS: usize = 8;
|
|||||||
/// Information about a `BeaconChain` validator.
|
/// Information about a `BeaconChain` validator.
|
||||||
#[cfg_attr(feature = "arbitrary-fuzz", derive(arbitrary::Arbitrary))]
|
#[cfg_attr(feature = "arbitrary-fuzz", derive(arbitrary::Arbitrary))]
|
||||||
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize, Encode, Decode, TestRandom)]
|
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize, Encode, Decode, TestRandom)]
|
||||||
// FIXME(sproul): fix serialize/deserialize impl
|
#[serde(deny_unknown_fields)]
|
||||||
pub struct Validator {
|
pub struct Validator {
|
||||||
|
#[serde(flatten)]
|
||||||
pub immutable: Arc<ValidatorImmutable>,
|
pub immutable: Arc<ValidatorImmutable>,
|
||||||
|
#[serde(flatten)]
|
||||||
pub mutable: ValidatorMutable,
|
pub mutable: ValidatorMutable,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user