-
Notifications
You must be signed in to change notification settings - Fork 175
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
Add eventstreamV2
#459
Add eventstreamV2
#459
Conversation
attestation
and attestation_slashing
in eventstream
eventstreamV2
I am in favor of bumping the whole api to v2 instead of just single topics (previous discussion) but I think we should use this opportunity to make other topics more forward compatible to not have to bump the api again at some (unknown) point in the future. Further topics we could wrap inside version container are
In the worst case if those never happen to change in the future, it would at least make the format of events more consistent |
i think if we're wanting to go this way we want to put version on every type... One option would be to just add This lets us not duplicate our eventstream framework, im not sure if that only affects our specific endpoints... currently teku has a whole framework around the event stream so this might be a bit of fun (not saying to avoid it, but just as context) |
If we do that, does the
yeah, we need more feedback from others on the implementation complexity here, might not be as trivial as bumping other apis, it's also a bit more effort on Lodestar side to do this. |
yes i would expect that it would just handle phase0, and you'd need a new topic for the versioned attestation format... The event stream is basically a bunch of different objects anyway, so we could do then in future if we need something else versioned, we can just build that out... I really don't mind the name, we could potentially just do |
quick update - currently its looking like we may be able to avoid this change, I've raised a question in discord. |
Not in favor of a v2 api due to high code duplication and maintenance overhead of the server-side implementation |
closing as not planned at the moment. |
We need to communicate fork version during
attestation
andattester_slashing
since it is modified by EIP-7549.For example,
"aggregation_bits":"0x01"
will mean different validators in pre and post-EIP-7549.This PR adds
eventstreamV2
which hasversion
inattestation
andattester_slashing
Related to #445