Skip to content

Conversation

@mattsse
Copy link
Collaborator

@mattsse mattsse commented Dec 3, 2025

this makes the endpoint also work on other networks that dont have blobs and also matches what geth is doing where the blobschedule field is optional in the first place and can be "null"

we can do this manually on alloy if these are set to 0 for example

https://github.com/ethereum/go-ethereum/blob/6f2cbb7a27ba7e62b0bdb2090755ef0d271714be/params/config.go#L1173-L1193

https://github.com/ethereum/go-ethereum/blob/6f2cbb7a27ba7e62b0bdb2090755ef0d271714be/internal/ethapi/api.go#L1177-L1177

@mattsse mattsse requested a review from klkvr December 3, 2025 20:11
@mattsse mattsse added A-rpc Related to the RPC implementation A-sdk Related to reth's use as a library labels Dec 3, 2025
@mattsse mattsse enabled auto-merge December 3, 2025 20:12
Copy link
Member

@klkvr klkvr left a comment

Choose a reason for hiding this comment

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

lgtm

Comment on lines 79 to 89
blob_schedule: chain_spec
.blob_params_at_timestamp(timestamp)
// no blob support, so we set this to zero
.unwrap_or(BlobParams {
target_blob_count: 0,
max_blob_count: 0,
update_fraction: 0,
min_blob_fee: 0,
max_blobs_per_tx: 0,
blob_base_cost: 0,
}),
Copy link
Member

Choose a reason for hiding this comment

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

should this be BlobParams::cancun() instead? I guess ideally we just make it optional but not worth breaking alloy for this

@mattsse mattsse added this pull request to the merge queue Dec 4, 2025
@github-project-automation github-project-automation bot moved this from Backlog to In Progress in Reth Tracker Dec 4, 2025
@mattsse mattsse removed this pull request from the merge queue due to a manual request Dec 4, 2025
@mattsse mattsse enabled auto-merge December 4, 2025 18:28
@mattsse mattsse added this pull request to the merge queue Dec 4, 2025
Merged via the queue into main with commit d71cd12 Dec 4, 2025
43 checks passed
@mattsse mattsse deleted the matt/allow-missing-blobparams-in-ethconfig branch December 4, 2025 19:09
@github-project-automation github-project-automation bot moved this from In Progress to Done in Reth Tracker Dec 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-rpc Related to the RPC implementation A-sdk Related to reth's use as a library

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants