Skip to content

feat: Store attestations in archiver - #12699

Merged
spalladino merged 3 commits into
masterfrom
palla/store-attestations-in-archiver
Mar 13, 2025
Merged

spalladino merged 3 commits into
masterfrom
palla/store-attestations-in-archiver

Conversation

@spalladino

Copy link
Copy Markdown
Contributor

Downloads attestor signatures from L1 and stores them along with blocks. These are pushed into the attestation pool when new blocks are seen, to guarantee that all attestations are visible in the pool (in case some were missed via p2p).

Introduces a new PublishedL2Block type (that replaces the L1Published wrapper type), and adds a getPublishedBlocks method to both archiver and node. Eventually we could merge this method with getBlocks, but I did not want to change every single client of getBlocks at this stage.

@spalladino
spalladino force-pushed the palla/store-attestations-in-archiver branch from 4adab55 to a5faba6 Compare March 12, 2025 20:22
@spalladino
spalladino enabled auto-merge (squash) March 12, 2025 20:36
Comment thread yarn-project/archiver/src/archiver/data_retrieval.ts Outdated
Comment thread yarn-project/end-to-end/src/e2e_p2p/reqresp.test.ts Outdated
Comment thread yarn-project/p2p/src/client/p2p_client.ts Outdated
Downloads attestor signatures from L1 and stores them along with blocks.
These are pushed into the attestation pool when new blocks are seen, to
guarantee that all attestations are visible in the pool (in case some
were missed via p2p).

Introduces a new `PublishedL2Block` type (that replaces the
`L1Published` wrapper type), and adds a `getPublishedBlocks` method to
both archiver and node. Eventually we could merge this method with
`getBlocks`, but I did not want to change every single client of
`getBlocks` at this stage.
@spalladino
spalladino force-pushed the palla/store-attestations-in-archiver branch from a5faba6 to 2c3f666 Compare March 13, 2025 17:41
@spalladino

Copy link
Copy Markdown
Contributor Author

@Maddiaa0 thanks for the review, I've addressed comments, rebased, and (hopefully) fixed tests

@spalladino
spalladino merged commit 95304ea into master Mar 13, 2025
@spalladino
spalladino deleted the palla/store-attestations-in-archiver branch March 13, 2025 18:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants