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

Consistency assumption on final pending block (per slot) between of EU and US relays #3

Open
nakedkoalacapital opened this issue Nov 26, 2024 · 1 comment

Comments

@nakedkoalacapital
Copy link

My program queries for pending next block inside aloop via eth/v1/builder/header{slot}/{parent_block_hash}/{validator_pub_key}

Should I make the assumption that the final pending block ( the last version before slot ends) hash will always match between the 2 relays ?

Based on some preliminary testing, it does seem like this is the case.

But I do get some cases where the expected consistency is not observed. ( the final version of block hash from EU does not match that from US). I am not sure if this is because my assumption is wrong or that my polling loop missed a update before the slot rolls over to the next one.

Can the team comment ?
If I am interested in polling the latest best pending block hash from ultrasound, would it be sufficient just polling 1 of the EU/US relay ?

@sambacha
Copy link

My program queries for pending next block inside aloop via eth/v1/builder/header{slot}/{parent_block_hash}/{validator_pub_key}

Should I make the assumption that the final pending block ( the last version before slot ends) hash will always match between the 2 relays ?

Based on some preliminary testing, it does seem like this is the case.

But I do get some cases where the expected consistency is not observed. ( the final version of block hash from EU does not match that from US). I am not sure if this is because my assumption is wrong or that my polling loop missed a update before the slot rolls over to the next one.

Can the team comment ? If I am interested in polling the latest best pending block hash from ultrasound, would it be sufficient just polling 1 of the EU/US relay ?

My understanding is that the relays are not connected like that, and it would be entirely predicated upon the validator location as to which relay would be the proper choice. Since you have 2 epochs of a head start, you can crawl for their IP's and based off that decide. Over time, it would be sufficient to just associate the validator identity with the node operator and have that determination recorded without having to trace the IP address (assuming that the ip address to that machine doesn't change or isn't re-allocated from whomever provides the ip address space for the underlying instance).

if you need additional help just reach out to me on telegram, @sambacha (I am not affiliated with the team, rather we operate SecureRPC.com another relay).

Cheers,

Sam

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

No branches or pull requests

2 participants