-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Get blob fulu #15610
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Get blob fulu #15610
Conversation
| } | ||
|
|
||
| // If block is not in the retention window, return 200 w/ empty list | ||
| if !p.BlobStorage.WithinRetentionPeriod(slots.ToEpoch(roSignedBlock.Block().Slot()), slots.ToEpoch(p.GenesisTimeFetcher.CurrentSlot())) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm removing this check based on discussion with manu, we should just return what we have
| field_params "github.com/OffchainLabs/prysm/v6/config/fieldparams" | ||
| "github.com/OffchainLabs/prysm/v6/beacon-chain/rpc/eth/shared" | ||
| "github.com/OffchainLabs/prysm/v6/beacon-chain/rpc/options" | ||
| fieldparams "github.com/OffchainLabs/prysm/v6/config/fieldparams" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the alias can be removed because it is identical to the package name
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oops not sure how that happened
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wait it's called field_params so i need to leave it or use the old one
i think field_params is not preferred
beacon-chain/rpc/lookup/blocker.go
Outdated
|
|
||
| // Verify all requested hashes were found | ||
| if len(indices) != len(cfg.VersionedHashes) { | ||
| return nil, &core.RpcError{Err: errors.New("versioned hash does not exist in given block"), Reason: core.NotFound} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This would require writing some more code, but it would be nice to let the caller know exactly which hash(es) were not found
Co-authored-by: Radosław Kapka <[email protected]>
Co-authored-by: Radosław Kapka <[email protected]>
Co-authored-by: Radosław Kapka <[email protected]>
* wip * wip * adding ssz marshalling * updating function for readability * adding unit tests and fixing ssz * gaz * linting * fixing test * wip * fixing mock blocker * fixing test * fixing tests and handler * updating unit test for more coverage * adding some comments * self review * gofmt * updating and consolidating tests * moving functional options so it can be used properly * gofmt * more missed gofmt * Update beacon-chain/rpc/endpoints.go Co-authored-by: Radosław Kapka <[email protected]> * Update beacon-chain/rpc/lookup/blocker.go Co-authored-by: Radosław Kapka <[email protected]> * Update beacon-chain/rpc/eth/beacon/handlers.go Co-authored-by: Radosław Kapka <[email protected]> * radek feedback * fixing tests * fixing test * moving endpoint in test * removed unneeded comment * fixing linting from latest develop merge * fixing linting from latest develop merge * Update beacon-chain/rpc/eth/blob/handlers.go Co-authored-by: Radosław Kapka <[email protected]> * Update beacon-chain/rpc/eth/blob/handlers.go Co-authored-by: Radosław Kapka <[email protected]> * reverting change * reverting change * adding in better error for which hashes are missing * Update beacon-chain/rpc/lookup/blocker.go Co-authored-by: Radosław Kapka <[email protected]> * fixing unit test * gofmt --------- Co-authored-by: Radosław Kapka <[email protected]>
* wip * wip * adding ssz marshalling * updating function for readability * adding unit tests and fixing ssz * gaz * linting * fixing test * wip * fixing mock blocker * fixing test * fixing tests and handler * updating unit test for more coverage * adding some comments * self review * gofmt * updating and consolidating tests * moving functional options so it can be used properly * gofmt * more missed gofmt * Update beacon-chain/rpc/endpoints.go Co-authored-by: Radosław Kapka <[email protected]> * Update beacon-chain/rpc/lookup/blocker.go Co-authored-by: Radosław Kapka <[email protected]> * Update beacon-chain/rpc/eth/beacon/handlers.go Co-authored-by: Radosław Kapka <[email protected]> * radek feedback * fixing tests * fixing test * moving endpoint in test * removed unneeded comment * fixing linting from latest develop merge * fixing linting from latest develop merge * Update beacon-chain/rpc/eth/blob/handlers.go Co-authored-by: Radosław Kapka <[email protected]> * Update beacon-chain/rpc/eth/blob/handlers.go Co-authored-by: Radosław Kapka <[email protected]> * reverting change * reverting change * adding in better error for which hashes are missing * Update beacon-chain/rpc/lookup/blocker.go Co-authored-by: Radosław Kapka <[email protected]> * fixing unit test * gofmt --------- Co-authored-by: Radosław Kapka <[email protected]>
What type of PR is this?
Feature
What does this PR do? Why is it needed?
adds the new endpoint /eth/v1/beacon/blobs/{block_id} that will later replace /eth/v1/beacon/blob_sidecars/{block_id}
Which issues(s) does this PR fix?
Fixes # ethereum/beacon-APIs#546
task in #14129
Other notes for review
Acknowledgements