-
Notifications
You must be signed in to change notification settings - Fork 741
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
Add PeerDAS RPC import boilerplate #6238
Conversation
@@ -476,6 +477,24 @@ impl<T: BeaconChainTypes> NetworkBeaconProcessor<T> { | |||
}) | |||
} | |||
|
|||
/// Create a new `Work` event for some custody columns. `process_rpc_custody_columns` reports | |||
/// the result back to sync. | |||
pub fn send_rpc_custody_columns( |
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.
Future PR touching sync will consume this function
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.
Just some small feedback but looks good!
f428d17
to
8688065
Compare
77e0cb6
to
15881d0
Compare
@jimmygchen I have reverted the refactor of the *SameBlock types. This PR just extends same style as blobs Also rebased on unstable to clean the commits :) |
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.
Looks like my feedback was related to the refactor, just had one nit!
@@ -181,6 +183,38 @@ impl<T: BeaconChainTypes> DataAvailabilityChecker<T> { | |||
.put_kzg_verified_blobs(block_root, epoch, verified_blobs) | |||
} | |||
|
|||
/// Put a list of custody columns received via RPC into the availability cache. This performs KZG | |||
/// verification on the blobs in the list. | |||
#[allow(clippy::type_complexity)] |
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.
#[allow(clippy::type_complexity)] |
i think this is not necessary
@mergify queue |
✅ The pull request has been merged automaticallyThe pull request has been merged automatically at 5169e03 |
* Add PeerDAS RPC import boilerplate * revert refactor * Remove allow
Issue Addressed
Continue porting network changes of
das
branch. Extends #6224Part of
Proposed Changes
Work:: RpcCustodyColumn
eventDataColumnsSameBlock
as downstream code assumes that all submitted columns are in the same block. The implementation indas
just assumes this to be the case, but this PR makes this assumption explicit via a new type. I changed the gossip import method from accepting N columns to exactly 1, so we can assert that the single column is always part of the same block.