feat: add debug.setSyncTarget console command (#31375)#31665
feat: add debug.setSyncTarget console command (#31375)#31665demoncoder-crypto wants to merge 3 commits intoethereum:masterfrom
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.
Not a big fan of this tbh, open for suggestions here
There was a problem hiding this comment.
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 |
|
@MariusVanDerWijden please push your changes |
|
I have created a different PR here that implements this in a cleaner way: #31928 |
|
#31928 was merged, please rebase and clean this up so we can also merge this feature @demoncoder-crypto |
|
We already have the the Geth team will be the users of this method, and it's intended use is to allow Geth to track a chosen chain in the case of an adverse beacon chain network event (like what we saw on holesky). My assumption is that users of |
|
I've added an alternative PR here. |
No description provided.