-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Return early blob constructor if not deneb #14605
Conversation
9227a99
to
a47f3e0
Compare
a47f3e0
to
b0f773a
Compare
@@ -194,3 +194,12 @@ func TestReconstructAndBroadcastBlobs(t *testing.T) { | |||
}) | |||
} | |||
} | |||
|
|||
func TestReconstructAndBroadcastBlobs_Capella(t *testing.T) { |
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.
This test doesn't really check anything. It will pass even if you reverted your change. You can theoretically check that some error logs are not present, but I am not sure if it's worth it.
Eidt: I found https://github.com/prysmaticlabs/prysm/pull/13809/files#diff-12f8f13acdaf89b149c9a2f153f9348b1eb8ae1cbd1883297a55b8215ff7c47e, you can use this idea if you like it.
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.
We don't want to log errors or debug. This would create verbose logs for nodes in Capella. The most I'd consider logging is at the trace level, but honestly, I don't think it's worth logging. I'm leaning towards keeping the original state as it is
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
If the block is before Deneb, we don’t need to reconstruct the blob sidecar, and in this case, it’s reasonable to return early in the future instead of encountering errors down the line