From cb0dc099ee0d43cb4620c0bf1a41d2999fdd401b Mon Sep 17 00:00:00 2001 From: Gary Rong Date: Thu, 25 Sep 2025 00:00:23 +0800 Subject: [PATCH] eth/catalyst: fix the bpo1/bpo2 --- eth/catalyst/api.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/eth/catalyst/api.go b/eth/catalyst/api.go index c44d8d58d1..6dfe24f729 100644 --- a/eth/catalyst/api.go +++ b/eth/catalyst/api.go @@ -546,8 +546,8 @@ func (api *ConsensusAPI) GetBlobsV1(hashes []common.Hash) ([]*engine.BlobAndProo // blob pool data. func (api *ConsensusAPI) GetBlobsV2(hashes []common.Hash) ([]*engine.BlobAndProofV2, error) { head := api.eth.BlockChain().CurrentHeader() - if !api.checkFork(head.Time, forks.Osaka) { - return nil, unsupportedForkErr("engine_getBlobsV2 is only available at Osaka fork") + if api.config().LatestFork(head.Time) < forks.Osaka { + return nil, unsupportedForkErr("engine_getBlobsV2 is not available before Osaka fork") } if len(hashes) > 128 { return nil, engine.TooLargeRequest.With(fmt.Errorf("requested blob count too large: %v", len(hashes)))