mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-23 05:06:43 +00:00
eth/catalyst: get blob v2 using system timestamp
This commit is contained in:
parent
28c59b7a76
commit
21fe723c48
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
// Client software MUST return null if syncing or otherwise unable to serve
|
||||||
// blob pool data.
|
// blob pool data.
|
||||||
func (api *ConsensusAPI) GetBlobsV2(hashes []common.Hash) ([]*engine.BlobAndProofV2, error) {
|
func (api *ConsensusAPI) GetBlobsV2(hashes []common.Hash) ([]*engine.BlobAndProofV2, error) {
|
||||||
head := api.eth.BlockChain().CurrentHeader()
|
ts := time.Now().Unix()
|
||||||
if api.config().LatestFork(head.Time) < forks.Osaka {
|
if api.config().LatestFork(uint64(ts)) < forks.Osaka {
|
||||||
return nil, unsupportedForkErr("engine_getBlobsV2 is not available before Osaka fork")
|
return nil, unsupportedForkErr("engine_getBlobsV2 is not available before Osaka fork")
|
||||||
}
|
}
|
||||||
if len(hashes) > 128 {
|
if len(hashes) > 128 {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue