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

Avoid constantly triggering stageloop when using Engine API #4797

Merged
merged 5 commits into from
Jul 23, 2022

Conversation

Giulio2002
Copy link
Collaborator

@Giulio2002 Giulio2002 commented Jul 22, 2022

Rationale

Moving all non-stagedsync dependent rpc answers outside stage_headers.go as pre-checks in eth_backend.go.

Motivations

  • Not get spammed with stageloop logs
  • Avoid filling the request lists to oblivion while syncing up
  • Remove code duplication
  • Set up a more readable set of pre-requisites
  • better UX
  • Being less prone to bugs and more simple code in stage_headers overall.
  • Ability to give proper answers to Consensus Layer even if stageloop is busy.

@Giulio2002 Giulio2002 marked this pull request as draft July 22, 2022 22:38
@Giulio2002
Copy link
Collaborator Author

Side note: CL seems also to have improved syncing speed, probably because send out responses faster since we dont pass through the stageloop. i observed lighthouse going from 27.7 slots per second to 110 slots per seconds.

@AskAlexSharov
Copy link
Collaborator

I like it

@Giulio2002 Giulio2002 marked this pull request as ready for review July 23, 2022 11:18
eth/backend.go Outdated Show resolved Hide resolved
ethdb/privateapi/ethbackend.go Outdated Show resolved Hide resolved
@yperbasis yperbasis added the proof-of-stake "The Merge" related commits label Jul 23, 2022
ethdb/privateapi/ethbackend.go Outdated Show resolved Hide resolved
ethdb/privateapi/ethbackend.go Outdated Show resolved Hide resolved
ethdb/privateapi/ethbackend.go Show resolved Hide resolved
ethdb/privateapi/ethbackend.go Show resolved Hide resolved
@Giulio2002 Giulio2002 merged commit 1cb6be0 into devel Jul 23, 2022
@Giulio2002 Giulio2002 deleted the fix-block-building branch July 23, 2022 16:57
This was referenced Jul 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
proof-of-stake "The Merge" related commits
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants