mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-09 11:41:51 +00:00
Add MetaData V3 support to node/identity API (#6827)
* Add metadata v3 support to `node/identity` api.
This commit is contained in:
@@ -584,12 +584,20 @@ pub struct IdentityData {
|
||||
pub metadata: MetaData,
|
||||
}
|
||||
|
||||
#[superstruct(
|
||||
variants(V2, V3),
|
||||
variant_attributes(derive(Clone, Debug, PartialEq, Serialize, Deserialize))
|
||||
)]
|
||||
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
|
||||
#[serde(untagged)]
|
||||
pub struct MetaData {
|
||||
#[serde(with = "serde_utils::quoted_u64")]
|
||||
pub seq_number: u64,
|
||||
pub attnets: String,
|
||||
pub syncnets: String,
|
||||
#[superstruct(only(V3))]
|
||||
#[serde(with = "serde_utils::quoted_u64")]
|
||||
pub custody_group_count: u64,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
|
||||
|
||||
Reference in New Issue
Block a user