-
Notifications
You must be signed in to change notification settings - Fork 113
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
Allow SSZ builder submissions (also SSZ+GZIP) #388
Conversation
da5dd20
to
35b6f9b
Compare
35b6f9b
to
5ddf6b0
Compare
Deployed to Flashbots Goerli and Sepolia relays |
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.
Just a few little nits, but LGTM 👍 I'm all for performance improvements.
@@ -1387,7 +1411,7 @@ func (api *RelayAPI) handleSubmitNewBlock(w http.ResponseWriter, req *http.Reque | |||
log.Warn("could not find slot duty") | |||
api.RespondError(w, http.StatusBadRequest, "could not find slot duty") | |||
return | |||
} else if slotDuty.Entry.Message.FeeRecipient.String() != payload.ProposerFeeRecipient() { | |||
} else if !strings.EqualFold(slotDuty.Entry.Message.FeeRecipient.String(), payload.ProposerFeeRecipient()) { |
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.
Now a case-insensitive equality comparison. Makes sense, because the SSZ payload is just bytes 👍
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.
yeah, was needed to work with both JSON and SSZ :)
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.
LGTM. Thanks 😄
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.
LGTM! ssz is a great!
req.Header.Set(k, v) | ||
} | ||
|
||
// lfg |
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.
nit: lfg?
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.
let's fucking go 🤠
Codecov Report
📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more @@ Coverage Diff @@
## main #388 +/- ##
==========================================
+ Coverage 20.35% 22.46% +2.10%
==========================================
Files 21 21
Lines 4082 4104 +22
==========================================
+ Hits 831 922 +91
+ Misses 3149 3055 -94
- Partials 102 127 +25
Flags with carried forward coverage won't be shown. Click here to find out more.
|
7540c2b
to
2d51c47
Compare
📝 Summary
Allows block builder submissions also in SSZ, besides JSON.
Decoding performance
✅ I have run these commands
make lint
make test-race
go mod tidy
CONTRIBUTING.md