mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2025-01-03 08:37:37 +00:00
Properly display sync committees in GetStateV2
(#9599)
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
This commit is contained in:
parent
5230af0e0c
commit
c47923d20e
@ -527,8 +527,8 @@ type beaconStateV2Json struct {
|
|||||||
CurrentJustifiedCheckpoint *checkpointJson `json:"current_justified_checkpoint"`
|
CurrentJustifiedCheckpoint *checkpointJson `json:"current_justified_checkpoint"`
|
||||||
FinalizedCheckpoint *checkpointJson `json:"finalized_checkpoint"`
|
FinalizedCheckpoint *checkpointJson `json:"finalized_checkpoint"`
|
||||||
InactivityScores []string `json:"inactivity_scores"`
|
InactivityScores []string `json:"inactivity_scores"`
|
||||||
CurrentSyncCommittee syncCommitteeJson `json:"current_sync_committee"`
|
CurrentSyncCommittee *syncCommitteeJson `json:"current_sync_committee"`
|
||||||
NextSyncCommittee syncCommitteeJson `json:"next_sync_committee"`
|
NextSyncCommittee *syncCommitteeJson `json:"next_sync_committee"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type beaconStateContainerV2Json struct {
|
type beaconStateContainerV2Json struct {
|
||||||
@ -572,8 +572,8 @@ type committeeJson struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type syncCommitteeJson struct {
|
type syncCommitteeJson struct {
|
||||||
Pubkeys []string `json:"pubkeys" hex:"true"`
|
Pubkeys []string `json:"pubkeys" hex:"true"`
|
||||||
PubkeyAggregates string `json:"pubkey_aggregates" hex:"true"`
|
AggregatePubkey string `json:"aggregate_pubkey" hex:"true"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type syncCommitteeValidatorsJson struct {
|
type syncCommitteeValidatorsJson struct {
|
||||||
|
@ -294,6 +294,9 @@ func hexToBase64Processor(v reflect.Value) error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func base64ToHexProcessor(v reflect.Value) error {
|
func base64ToHexProcessor(v reflect.Value) error {
|
||||||
|
if v.String() == "" {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
b, err := base64.StdEncoding.DecodeString(v.String())
|
b, err := base64.StdEncoding.DecodeString(v.String())
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
|
Loading…
Reference in New Issue
Block a user