lighthouse
lighthouse copied to clipboard
Add `DataColumnSidecarsByRoot ` req/resp protocol
Issue Addressed
Part of #4983.
Proposed Changes
Add implementation for DataColumnSidecarsByRoot
.
Currently blobs are served from three sources, in the following order
- data availability checker (before we have all the blocks and blobs)
- early attester cache (before we import the block)
- blobs db (after import)
I've implemented the equivalent for data columns, and I'm reusing the blobs db for simplicity now.
This PR does not cover the following:
- Sending outbound requests
- Handling of responses from peers
Remaining work:
- [ ] Review logic for storing data columns (ideally make it work pre/post EIP-7594)
- [ ] Fix failing tests
- [ ] Add some test cases for data column