-
Notifications
You must be signed in to change notification settings - Fork 784
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
Request: VC option to submit messages to all connected beacon nodes #4684
Comments
Seems related to #3001 |
I'm guessing the place to edit for this would be |
@xrchz There are functions in there called run, and run_on_all that have that behaviour. They don't support gathering data from all endpoints (e.g. forming attestations), but could be used for broadcasts |
How it works at the moment is that subscriptions for duties are broadcast, but the messages themselves (blocks + attestations) are not. We could add a new flag to replace |
Yes I like those flag suggestions. |
Hi, I'm ready to make a PR for this issue. I've a few questions, however:
|
Hey @uvizhe thanks for working on this
|
Thanks for a quick response, @michaelsproul! So, to which of new flags Also, I'd like to have some integration tests for this, but I'm not familiar with your code base. Can you tell me if it's possible to quickly add such tests and where should I look for a reference, or should I abandon this idea (I don't really want to create new test harnesses, looks out of scope of this issue). |
I think it would be best as its own flag:
The validator client tests are a bit weird at the moment. You could try adding something in There are also CLI tests in |
Got it, thanks. So we got:
Maybe it would be more convenient to have a single |
I like the single broadcast flag option actually! If you use |
* multiple broadcast flags * rewrite with single --broadcast option * satisfy cargo fmt * shorten sync-committee-messages * fix a doc comment and a test * use strum * Add broadcast test to simulator * bring --disable-run-on-all flag back with deprecation notice
Closed by #4920. |
Description
Sometimes to maximise the chance of timely inclusion a node operator may want to have their validator client submit duties (attestations and proposals) to all connected beacon nodes, for redundancy. (This should be safe since only one validator client is operating so all submitted attestations should be the same and compatible, even if they are seen by different parts of the network initially.)
Version
All versions so far (up to 4.3.0).
Present Behaviour
Currently Lighthouse does not support broadcasting to all connected beacon nodes, and instead seems to only submit to the first/best node it knows about.
This seems to be the behaviour despite the existence of the
--disable-run-on-all
option.Expected Behaviour
When provided with an appropriate option (e.g.
--broadcast-duties
), submit duties to all connected beacon nodes.The text was updated successfully, but these errors were encountered: