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

Return early blob constructor if not deneb #14605

Merged
merged 5 commits into from
Nov 6, 2024

Conversation

terencechain
Copy link
Member

@terencechain terencechain commented Nov 1, 2024

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

@terencechain terencechain requested a review from a team as a code owner November 1, 2024 21:43
@terencechain terencechain force-pushed the return-early-blob-constructor branch 2 times, most recently from 9227a99 to a47f3e0 Compare November 1, 2024 22:29
@terencechain terencechain added the Ready For Review A pull request ready for code review label Nov 2, 2024
CHANGELOG.md Outdated Show resolved Hide resolved
@@ -194,3 +194,12 @@ func TestReconstructAndBroadcastBlobs(t *testing.T) {
})
}
}

func TestReconstructAndBroadcastBlobs_Capella(t *testing.T) {
Copy link
Contributor

@rkapka rkapka Nov 2, 2024

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.

Copy link
Member Author

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

terencechain and others added 3 commits November 5, 2024 16:51
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
james-prysm
james-prysm previously approved these changes Nov 6, 2024
@james-prysm james-prysm added this pull request to the merge queue Nov 6, 2024
Merged via the queue into develop with commit ab3f196 Nov 6, 2024
17 of 18 checks passed
@james-prysm james-prysm deleted the return-early-blob-constructor branch November 6, 2024 15:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Ready For Review A pull request ready for code review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants