fix gloas proposal endpoint support - #16818
Conversation
| return | ||
| } | ||
|
|
||
| w.Header().Set(api.VersionHeader, version.String(version.Gloas)) |
There was a problem hiding this comment.
not sure if we actually need this, commented on the beacon api
| envRoot := bytesutil.ToBytes32(signed.Message.BeaconBlockRoot) | ||
|
|
||
| if level == broadcastValidationConsensusAndEquivocation { | ||
| if s.ForkchoiceFetcher.HighestReceivedBlockSlot() == envSlot && |
There was a problem hiding this comment.
what happens if you submit a payload late?
There was a problem hiding this comment.
changed is this more appropriate?
| } | ||
| } | ||
|
|
||
| st, err := s.StateGenService.StateByRoot(ctx, envRoot) |
There was a problem hiding this comment.
This is going to be slow right
There was a problem hiding this comment.
you're right, it's probably wrong too, we should have a hard requirement that it's head, is a race condition an issue? if we haven't processed block yet for state?
| if jerr != nil { | ||
| return errors.Wrap(jerr, "could not marshal envelope JSON for fallback") | ||
| } | ||
| return c.handler.Post(ctx, endpoint, nil, bytes.NewBuffer(body), nil) |
There was a problem hiding this comment.
The header should have version info (https://github.com/ethereum/beacon-APIs/pull/580/changes#diff-81ee70f2d3ef064583bf30a5dd912e21e004476334fb825d16e72bc2bd411e12R52)
There was a problem hiding this comment.
thanks for catching added it here adding header to api call + reverting unneeded fast path on state by …
|
made default gossip validation a todo ( would make this pr much bigger breaking it out as a helper function) |
Co-authored-by: Jun Song <87601811+syjn99@users.noreply.github.com>
**What type of PR is this?** Bug fix **What does this PR do? Why is it needed?** - support for ssz on get and propose payload envelope and payload envelope content - query parameter for gossip validation on payload envelope relies on OffchainLabs#16421 and OffchainLabs#16306, needs some small changes to hook ptc up, if ptc is no issue 16421 is mainly required Testing ``` participants: - el_type: ethrex el_image: ethpandaops/ethrex:glamsterdam-devnet-4 el_extra_params: - --http.api=eth,net,web3,admin cl_type: prysm cl_image: gcr.io/offchainlabs/prysm/beacon-chain:latest vc_image: gcr.io/offchainlabs/prysm/validator:latest supernode: true count: 2 cl_extra_params: - --subscribe-all-subnets - --verbosity=debug vc_extra_params: - --enable-beacon-rest-api - --stateless - --verbosity=debug - el_type: ethrex el_image: ethpandaops/ethrex:glamsterdam-devnet-4 el_extra_params: - --http.api=eth,net,web3,admin cl_type: prysm cl_image: gcr.io/offchainlabs/prysm/beacon-chain:latest vc_image: gcr.io/offchainlabs/prysm/validator:latest validator_count: 63 cl_extra_params: - --verbosity=debug vc_extra_params: - --enable-beacon-rest-api - --verbosity=debug network_params: fulu_fork_epoch: 0 gloas_fork_epoch: 2 seconds_per_slot: 6 genesis_delay: 40 additional_services: - dora global_log_level: debug ``` **Which issues(s) does this PR fix?** partially fixes ethereum/beacon-APIs#580 depends on shane-moore/beacon-APIs#10 implements ethereum/beacon-APIs#613 **Other notes for review** **Acknowledgements** - [x] I have read [CONTRIBUTING.md](https://github.com/prysmaticlabs/prysm/blob/develop/CONTRIBUTING.md). - [x] I have included a uniquely named [changelog fragment file](https://github.com/prysmaticlabs/prysm/blob/develop/CONTRIBUTING.md#maintaining-changelogmd). - [x] I have added a description with sufficient context for reviewers to understand this PR. - [x] I have tested that my changes work as expected and I added a testing plan to the PR description (if applicable). --------- Co-authored-by: satushh <satushh@gmail.com> Co-authored-by: Jun Song <87601811+syjn99@users.noreply.github.com>
What type of PR is this?
Bug fix
What does this PR do? Why is it needed?
relies on #16421 and #16306, needs some small changes to hook ptc up, if ptc is no issue 16421 is mainly required
Testing
Which issues(s) does this PR fix?
partially fixes ethereum/beacon-APIs#580 depends on shane-moore/beacon-APIs#10
implements ethereum/beacon-APIs#613
Other notes for review
Acknowledgements