Add REST implementation for Validator's GetBeaconBlock (#11772)

* WIP

* WIP

* WIP

* Remove unused parameter

* Address PR comments

Co-authored-by: Radosław Kapka <rkapka@wp.pl>
This commit is contained in:
Patrice Vignola
2022-12-15 14:34:05 -08:00
committed by GitHub
parent 1c5b0596c7
commit e843cafe7d
23 changed files with 4107 additions and 679 deletions

View File

@@ -249,7 +249,7 @@ type VoluntaryExit struct {
// BeaconBlockAltairBlockV2 a sub property of BlockAltairSignRequest.
type BeaconBlockAltairBlockV2 struct {
Version string `json:"version"`
Version string `json:"version" enum:"true"`
Block *BeaconBlockAltair `json:"block"`
}
@@ -277,7 +277,7 @@ type BeaconBlockBodyAltair struct {
// BeaconBlockBellatrixBlockV2 a field of BlockBellatrixSignRequest.
type BeaconBlockBellatrixBlockV2 struct {
Version string `json:"version"`
Version string `json:"version" enum:"true"`
BlockHeader *BeaconBlockHeader `json:"block_header"`
}
@@ -289,7 +289,7 @@ type SyncAggregate struct {
// BeaconBlockBlockV2 a sub property of BlockV2SignRequest.
type BeaconBlockBlockV2 struct {
Version string `json:"version"`
Version string `json:"version" enum:"true"`
Block *BeaconBlock `json:"beacon_block"`
}