Skip to content
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

feat(state-bridge): add support for gossiping blocks from a range #1497

Merged
merged 2 commits into from
Sep 30, 2024

Conversation

morph-dev
Copy link
Collaborator

What was wrong?

State Bridge only supports gossiping blocks starting from 0.
We know that content from first ~500'000 blocks are saturated, and we might want to skip them to speed up the process.

How was it fixed?

Add support for range gossip.
We will still execute blocks starting from zero, but we will gossip only blocks from the range.

Specifying single block would imply gossiping all blocks starting from zero and ending with provided block.
This was left unmodified for backward compatibility, until we upgrade deployment scripts.
In my opinion, single block should gossip entire state trie at the specified block (but this requires more work).

To-Do

@morph-dev morph-dev added the portal-bridge Portal bridge label Sep 29, 2024
@morph-dev morph-dev added this to the Devcon 2024 milestone Sep 29, 2024
@morph-dev morph-dev self-assigned this Sep 29, 2024
Copy link
Member

@KolbyML KolbyML left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should add an example to the readme for the bridge other then that the PR looks good

@morph-dev morph-dev merged commit 75f2c20 into ethereum:master Sep 30, 2024
9 checks passed
@morph-dev morph-dev deleted the state_bridge_range branch September 30, 2024 08:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
portal-bridge Portal bridge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants