Skip to content

core/types: add BlobCount helper function #31972

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

cskiraly
Copy link
Contributor

@cskiraly cskiraly commented Jun 5, 2025

Adding a small helper to get the blob count of a block

@cskiraly cskiraly requested a review from rjl493456442 as a code owner June 5, 2025 07:35
Copy link
Contributor

@jwasinger jwasinger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We already have the blob_versioned_hashes available from the block header. Is this helper necessary?

@jwasinger
Copy link
Contributor

Sorry disregard that. Versioned hashes are on the transaction.

@jwasinger
Copy link
Contributor

jwasinger commented Jun 5, 2025

Perhaps a more future-proof approach is to actually count the blobs in each transaction of the block, or store this as an internal field on the block and return it from this helper function.

@fjl fjl changed the title core/block: add BlobCount helper function core/types: add BlobCount helper function Jun 5, 2025
@jwasinger
Copy link
Contributor

actually maybe we should just include this as-is and keep things simple.

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

Successfully merging this pull request may close these issues.

2 participants