Skip to content
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

Merged
merged 8 commits into from
Apr 5, 2023
Merged

query EL and builder relay for bids in parallel #4749

merged 8 commits into from
Apr 5, 2023

Conversation

tersec
Copy link
Contributor

@tersec tersec commented Mar 19, 2023

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.

@tersec tersec marked this pull request as draft March 19, 2023 19:08
@github-actions
Copy link

github-actions bot commented Mar 19, 2023

Unit Test Results

         9 files  ±0    1 068 suites  ±0   33m 22s ⏱️ + 2m 24s
  3 653 tests ±0    3 374 ✔️ ±0  279 💤 ±0  0 ±0 
15 584 runs  ±0  15 279 ✔️ ±0  305 💤 ±0  0 ±0 

Results for commit 5d4d13a. ± Comparison against base commit 0430208.

♻️ This comment has been updated with latest results.

@tersec tersec force-pushed the 2BY branch 2 times, most recently from eca4010 to 88e5ded Compare March 26, 2023 14:58
@tersec tersec force-pushed the 2BY branch 2 times, most recently from 1613e02 to 5a64bee Compare March 29, 2023 09:20
@tersec tersec changed the title outline for comparing bids from builder and engine APIs in BN query EL and builder relay for bids in parallel Mar 29, 2023
@tersec tersec marked this pull request as ready for review March 29, 2023 14:11
@tersec tersec force-pushed the 2BY branch 3 times, most recently from f8924bb to e160bcd Compare April 3, 2023 16:43
beacon_chain/validators/validator_duties.nim Outdated Show resolved Hide resolved
beacon_chain/validators/validator_duties.nim Outdated Show resolved Hide resolved

let useBuilderBlock =
if builderBidAvailable:
if engineBidAvailable:
Copy link
Contributor

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?

Copy link
Contributor Author

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](
Copy link
Contributor

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).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@zah zah merged commit 3bfff6f into unstable Apr 5, 2023
@zah zah deleted the 2BY branch April 5, 2023 13:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants