From 4fcd663a8995ded3716a691b767e800aee7475d2 Mon Sep 17 00:00:00 2001 From: rjl493456442 Date: Wed, 24 Sep 2025 22:21:29 +0800 Subject: [PATCH] Refactor error handling for GetBlobsV1 method --- eth/catalyst/api.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eth/catalyst/api.go b/eth/catalyst/api.go index 1eb70bd34e..e4401fd9c6 100644 --- a/eth/catalyst/api.go +++ b/eth/catalyst/api.go @@ -495,7 +495,7 @@ func (api *ConsensusAPI) GetBlobsV1(hashes []common.Hash) ([]*engine.BlobAndProo // Check if Osaka fork is active // follow https://github.com/ethereum/execution-apis/blob/main/src/engine/osaka.md#cancun-api if header := api.eth.BlockChain().CurrentHeader(); api.config().IsOsaka(header.Number, header.Time) { - return nil, engine.UnsupportedFork.With(fmt.Errorf("engine_getBlobsV1 is not supported after Osaka fork activation")) + return nil, unsupportedForkErr("engine_getBlobsV1 is not supported after Osaka fork") } if len(hashes) > 128 {