eth/catalyst: get blob v2 using system timestamp

This commit is contained in:
Muzry 2025-11-03 21:35:28 +08:00
parent 28c59b7a76
commit 21fe723c48

View file

@ -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 {