Skip to content

eth/catalyst: allow duplicate blob hashes #31788

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

Conversation

dguenther
Copy link

While running kurtosis and spamoor, I noticed occasional null entries coming back from getBlobsV2. After investigating, I found that spamoor can use the same blob data across multiple transactions, so with larger blob counts, there's an increased chance that a blob is included in a block more than once. As a result, previous indexes in the hash-to-index map in getBlobsV2 would get overwritten.

I changed the map from map[common.Hash]int to map[common.Hash][]int to handle this case. I decided to go this route because it's the smallest-possible fix, but it could also make sense to update blobpool.GetBlobs to de-duplicate the hashes.

@MariusVanDerWijden MariusVanDerWijden merged commit 8c22059 into ethereum:peerdas-devnet-6 May 9, 2025
1 of 2 checks passed
MariusVanDerWijden pushed a commit that referenced this pull request May 9, 2025
While running kurtosis and spamoor, I noticed occasional `null` entries
coming back from `getBlobsV2`. After investigating, I found that spamoor
can use the same blob data across multiple transactions, so with larger
blob counts, there's an increased chance that a blob is included in a
block more than once. As a result, previous indexes in the hash-to-index
map in `getBlobsV2` would get overwritten.

I changed the map from `map[common.Hash]int` to `map[common.Hash][]int`
to handle this case. I decided to go this route because it's the
smallest-possible fix, but it could also make sense to update
`blobpool.GetBlobs` to de-duplicate the hashes.
@dguenther dguenther deleted the peerdas-fix-duplicates branch June 24, 2025 22:23
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