-
Notifications
You must be signed in to change notification settings - Fork 20.9k
feat: add debug.setSyncTarget console command (#31375) #31665
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
base: master
Are you sure you want to change the base?
feat: add debug.setSyncTarget console command (#31375) #31665
Conversation
Have you even tried this once? |
log.Error("Could not get downloader") | ||
} | ||
// retry 20 times to retrieve the header from random peers | ||
for range 20 { |
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 a big fan of this tbh, open for suggestions here
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.
Do you need the complete change here, please do let me know I am more than happy to work on it, Thanks for the reply .
Have you even tried this once? |
So any suggestions on how to proceed with this, if my track is right should I proceed to improve this implementation? |
I'm currently assigned to this, but I rewrote it, so someone else should also take a look, maybe @jwasinger |
Sure, I'll take a look. |
What's the rationale behind this? Presumably this is so that the CL can initiate the EL sync while they are syncing. But if they already know the sync target, what's stopping them from send us a payload (before they are synced, to kick-off the sync on our end).
Same question. This ought to be a feature on the CL given the leader-follower relationship between the CL and EL. I'm guessing the answer is that we don't control the development on various CLs, and so it's convenient to have this feature on Geth to save some sync time. |
Split into two, try all peers in downloader |
No description provided.