eth/catalyst: return empty response for GetBlobsV2 before Osaka (#33444)

Fix #33420
This commit is contained in:
Jeevan 2025-12-19 12:12:51 +05:30 committed by GitHub
parent 5dfcffcf3c
commit dd7daace9d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -563,7 +563,7 @@ func (api *ConsensusAPI) GetBlobsV1(hashes []common.Hash) ([]*engine.BlobAndProo
func (api *ConsensusAPI) GetBlobsV2(hashes []common.Hash) ([]*engine.BlobAndProofV2, error) {
head := api.eth.BlockChain().CurrentHeader()
if api.config().LatestFork(head.Time) < forks.Osaka {
return nil, unsupportedForkErr("engine_getBlobsV2 is not available before Osaka fork")
return nil, nil
}
if len(hashes) > 128 {
return nil, engine.TooLargeRequest.With(fmt.Errorf("requested blob count too large: %v", len(hashes)))