-
Notifications
You must be signed in to change notification settings - Fork 231
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
query EL and builder relay for bids in parallel #4749
Conversation
eca4010
to
88e5ded
Compare
1613e02
to
5a64bee
Compare
f8924bb
to
e160bcd
Compare
|
||
let useBuilderBlock = | ||
if builderBidAvailable: | ||
if engineBidAvailable: |
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.
Both branches of this if
statement return true
?
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.
Yes, one of them's the point where the bid comparison will be placed. The other will remain unconditionally true
, because there's no alternative, because the engine bid didn't arrive.
res.get() | ||
|
||
template proposeBlockContinuation(type1, type2: untyped): auto = | ||
await proposeBlockAux[type1, type2]( |
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'm usually migrating all explicit generic parameters to typedesc
parameters, because the former have number of shortcomings in the compiler (e.g. limited ability to overload, lack of default values, more bugs).
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.
Co-authored-by: zah <zahary@status.im>
Co-authored-by: zah <zahary@status.im>
The VC implementation has tradeoffs, but among them is that it doesn't have the tight coupling this PR moves towards breaking up a bit.