-
Notifications
You must be signed in to change notification settings - Fork 956
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
modshare: GetRow
method
#3981
Comments
What is the motivation for API to be restricted? |
We don't allow parity namespaces and tail padding for namespace requests. Similalrly here, we don't allow data that doesn't have meaningful data. |
The |
Two more things:
|
The caching was part of the shwap hardening issue. As there is now another reason to do it, I made an issue for it #3984 |
Overview
We need the ability to get rows out of EDS for a height. Integration users(cc @Ferret-san) need access to the entire row with parity data. Currently, users resort to fetching full EDS via
GetEDS
to get a row, which doesn't scale and adds additional complexity.API
To achieve this, we add the following method to ShareModule.
Implementation
The necessary protocol changes have already been implemented, and it's already possible to request Row with Shwap. The remaining work is to plumb support up to the API.
We add and use the new
shwap.Getter
method:And add implementations to
BitswapGetter
andCascadeGetter
The
BitswapGetter
already uses Row fetching to get the EDS, which can be used as an example of how to fetch Rows/Testing
The feature must be delivered with a Swamp test, ensuring integration test coverage and API breakage protection. The test case should verify that every Q1Q2 row can be fetched and matches the DAH. Besides, we should check that Q3Q4 rows are restricted from fetching.
The text was updated successfully, but these errors were encountered: