-
Notifications
You must be signed in to change notification settings - Fork 118
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Deneb Support #564
Deneb Support #564
Conversation
67cfe19
to
2f16414
Compare
Codecov ReportAttention:
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## main #564 +/- ##
==========================================
+ Coverage 33.24% 35.66% +2.41%
==========================================
Files 24 24
Lines 5087 5227 +140
==========================================
+ Hits 1691 1864 +173
+ Misses 3177 3106 -71
- Partials 219 257 +38
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
* Remove bellatrix from wrapper types * remove test logs
* remove signed blinded beacon block wrapper type * linting
* remove submit block request wrapper types * fix tests * fix lint
* Upgrade go-boost-utils * pr comments * remove commented out code
* Make attestantio import names consistent * Fix linter errors & two comments
* Fix mistake in redis prefix for deneb * Fix typo in prefix
Value: value, | ||
PrevRandao: prevRandao, | ||
BlockNumber: blockNumber, | ||
Withdrawals: withdrawals, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What about BlobGasUsed
and ExcessBlobGas
? The type doesn't have those fields.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not needed as those fields are validated at the builder, this is just an helper struct that grabs the common fields needed for validation at the relay
type BuilderBlockValidationRequest struct { | ||
*VersionedSubmitBlockRequest | ||
RegisteredGasLimit uint64 `json:"registered_gas_limit,string"` | ||
ParentBeaconBlockRoot *phase0.Root `json:"parent_beacon_block_root,omitempty"` | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will the validator function allow ParentBeaconBlockRoot
to be missing? It doesn't appear to be an optional field in the builder's BuilderBlockValidationRequestV3
struct. Should BuilderBlockValidationRequest
(here in the relay) have the omitempty
qualifier?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the builder's BuilderBlockValidationRequestV3 struct will unmashal to a zero value (0 hash) as it does not validate that it is a required field.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tiny nits, still wrapping my head around it. will take another pass when im more fresh tomorrow
@avalonche I didn't realize that switch statement pattern ( |
* backwards compatibility if no deneb schedule * Update services/api/service.go Co-authored-by: Chris Hager <chris@linuxuser.at> --------- Co-authored-by: Chris Hager <chris@linuxuser.at>
@jtraglia yeah I didn't like having to list every version as the code only supports a small subset of the versions, so disabled the linter |
PSA: We've deployed this PR (tip of |
* add test vectors * linting
📝 Summary
mev-boost-relay changes for the deneb upgrade. See #489 for changes included in this branch. Summary:
common/types.go
and use attestant types insteadPublishBlockV2
endpoint for block publishing📚 References
Specs
PublishBlockV2
endpoint✅ I have run these commands
make lint
make test-race
go mod tidy
CONTRIBUTING.md