mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-23 05:06:43 +00:00
eth/catalyst: fix the bpo1/bpo2
This commit is contained in:
parent
f9a408b957
commit
cb0dc099ee
1 changed files with 2 additions and 2 deletions
|
|
@ -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)))
|
||||
|
|
|
|||
Loading…
Reference in a new issue