From 21fe723c48736b5cab517b4af66b94d0ac8159ff Mon Sep 17 00:00:00 2001 From: Muzry Date: Mon, 3 Nov 2025 21:35:28 +0800 Subject: [PATCH] eth/catalyst: get blob v2 using system timestamp --- 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 75b263bf6b..c60e8976c9 100644 --- a/eth/catalyst/api.go +++ b/eth/catalyst/api.go @@ -544,8 +544,8 @@ func (api *ConsensusAPI) GetBlobsV1(hashes []common.Hash) ([]*engine.BlobAndProo // Client software MUST return null if syncing or otherwise unable to serve // blob pool data. func (api *ConsensusAPI) GetBlobsV2(hashes []common.Hash) ([]*engine.BlobAndProofV2, error) { - head := api.eth.BlockChain().CurrentHeader() - if api.config().LatestFork(head.Time) < forks.Osaka { + ts := time.Now().Unix() + if api.config().LatestFork(uint64(ts)) < forks.Osaka { return nil, unsupportedForkErr("engine_getBlobsV2 is not available before Osaka fork") } if len(hashes) > 128 {