Skip to content

refactor: Download only non-pruned blocks #8562

@LHerskind

Description

@LHerskind

Altering the L2BlockProposed event and using the lookup allows us to only look if we know there is something to find. To properly test, need to prune parts of the chain to see if we actually download it. This should be possible by extending the e2e_synching test with a chain of length 10 that is pruned back to 5, and then see that after synching we only have the first 5.

Note that we can do this without being able to handle re-orgs it is the fresh sync case from #8457.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions