mirror of
https://github.com/OffchainLabs/prysm.git
synced 2026-01-09 13:28:01 -05:00
* fix: replace `BeaconBlockHeader` in `createLightClientBootstrap` with `LightClientHeader` * minor fix in `handlers_test.go` * check if `beacon` is `nil` instead of `header` --------- Co-authored-by: Radosław Kapka <rkapka@wp.pl>
36 lines
1.3 KiB
Go
36 lines
1.3 KiB
Go
package structs
|
|
|
|
type LightClientHeader struct {
|
|
Beacon *BeaconBlockHeader `json:"beacon"`
|
|
}
|
|
|
|
type LightClientBootstrapResponse struct {
|
|
Version string `json:"version"`
|
|
Data *LightClientBootstrap `json:"data"`
|
|
}
|
|
|
|
type LightClientBootstrap struct {
|
|
Header *LightClientHeader `json:"header"`
|
|
CurrentSyncCommittee *SyncCommittee `json:"current_sync_committee"`
|
|
CurrentSyncCommitteeBranch []string `json:"current_sync_committee_branch"`
|
|
}
|
|
|
|
type LightClientUpdate struct {
|
|
AttestedHeader *BeaconBlockHeader `json:"attested_header"`
|
|
NextSyncCommittee *SyncCommittee `json:"next_sync_committee,omitempty"`
|
|
FinalizedHeader *BeaconBlockHeader `json:"finalized_header,omitempty"`
|
|
SyncAggregate *SyncAggregate `json:"sync_aggregate"`
|
|
NextSyncCommitteeBranch []string `json:"next_sync_committee_branch,omitempty"`
|
|
FinalityBranch []string `json:"finality_branch,omitempty"`
|
|
SignatureSlot string `json:"signature_slot"`
|
|
}
|
|
|
|
type LightClientUpdateWithVersion struct {
|
|
Version string `json:"version"`
|
|
Data *LightClientUpdate `json:"data"`
|
|
}
|
|
|
|
type LightClientUpdatesByRangeResponse struct {
|
|
Updates []*LightClientUpdateWithVersion `json:"updates"`
|
|
}
|