Conversation
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
| ExecutionPayloadTopic = "execution_payload_available" | ||
| // ExecutionPayloadBidTopic represents a new execution payload bid event topic. | ||
| // This topic is currently not triggered but is recognized to avoid client subscription errors. | ||
| ExecutionPayloadBidTopic = "execution_payload_bid" |
There was a problem hiding this comment.
we need some tests for this events.go file
There was a problem hiding this comment.
we don'tneed payload_attestation_message for dora to be happy?
There was a problem hiding this comment.
not for now, payloads and the payload event are enough to show the green/yellow status of payloads.
| if !ok { | ||
| return errors.New("expected `totalDifficulty` field in JSON response") | ||
| } | ||
| e.TotalDifficulty, _ = decoded["totalDifficulty"].(string) |
There was a problem hiding this comment.
why doesn't this need to be handled? i think this change is unrelated
There was a problem hiding this comment.
This is no longer there in newer blocks it seems, proably something from v5? I honestly do not know but without this it panics on devnet0, so I made it optional
|
|
||
| // ReconstructExecutionPayloadEnvelope -- | ||
| func (e *EngineClient) ReconstructExecutionPayloadEnvelope( | ||
| _ context.Context, envelope *ethpb.SignedBlindedExecutionPayloadEnvelope, |
There was a problem hiding this comment.
do we need context if it's not used?
There was a problem hiding this comment.
This is in the mock, the original function uses it.
There was a problem hiding this comment.
thanks just noticed that didn't realize in initial review
| httputil.HandleError(w, "block_root is required in URL params", http.StatusBadRequest) | ||
| return | ||
| } | ||
| rootBytes, err := hexutil.Decode(blockRoot) |
There was a problem hiding this comment.
this could use this helper instead of having the 2 checks
root, err := bytesutil.DecodeHexWithLength(req.BlockRoot, 32)
if err != nil {
httputil.HandleError(w, "Could not decode block root: "+err.Error(), http.StatusBadRequest)
return
}
…h/v1/beacon/execution_payload_envelope/{block_id} defined in beacon apis (#16521)
**What type of PR is this?**
Bug fix
**What does this PR do? Why is it needed?**
missed this in review
we should have /eth/v1/beacon/execution_payload_envelope/{block_root} as
/eth/v1/beacon/execution_payload_envelope/{block_id} defined in beacon
apis
https://github.com/ethereum/beacon-APIs/blob/master/apis/beacon/execution_payload/envelope_get.yaml
missed in #16441
**Which issues(s) does this PR fix?**
Fixes #
**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).
…h/v1/beacon/execution_payload_envelope/{block_id} defined in beacon apis (OffchainLabs#16521)
**What type of PR is this?**
Bug fix
**What does this PR do? Why is it needed?**
missed this in review
we should have /eth/v1/beacon/execution_payload_envelope/{block_root} as
/eth/v1/beacon/execution_payload_envelope/{block_id} defined in beacon
apis
https://github.com/ethereum/beacon-APIs/blob/master/apis/beacon/execution_payload/envelope_get.yaml
missed in OffchainLabs#16441
**Which issues(s) does this PR fix?**
Fixes #
**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).
it also adds as a stub without a trigger the execution_payload_bid event stream.
These are the minimum necessary to get Dora happy on Kurtosis. Haven't reviewed this PR yet, so opening it as draft. Only check was in Kurtosis against Dora.