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

StreamRegistry: support allocating stream without genesis block #2194

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

bas-vk
Copy link
Contributor

@bas-vk bas-vk commented Jan 29, 2025

Currently the node passes the protobuf serialised genesis block when allocating a stream to streams registry. As part of migrating to replicated streams the node will stop doing this and nodes can request the genesis block from one of the replicas if it needs it. This saves on calldata and storage costs.

This PR adds 2 functions:

  • new overload of AllocateStream that doesn't accept the genesis block bytes
  • getStreamWithGenesisHash as a future replacement for getStreamWithGenesis

Follow-up changes after this is deployed:

  • migrate the node to move away from registering the genesis block with the 2 newly introduces functions. This will be a 2 step process, first ensure all nodes are able to deal with "missing" genesis block and migrate nodes to strop writing genesis block.
  • drop the 2 old functions that accept/return the genesis block from the stream facet and mark the storage slot for genesis block data as used/freed/...?

Copy link

vercel bot commented Jan 29, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
river-sample-app ⬜️ Ignored (Inspect) Visit Preview Feb 5, 2025 8:31am

@bas-vk bas-vk force-pushed the basvk/genesis_mb_chain branch from c035673 to 45212e8 Compare February 3, 2025 11:25
@bas-vk bas-vk marked this pull request as ready for review February 3, 2025 11:42
@giuseppecrj
Copy link
Contributor

Looks good, will push deploy address for gamma proposal

@bas-vk bas-vk force-pushed the basvk/genesis_mb_chain branch from 8122dd3 to c697c82 Compare February 5, 2025 08:31
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.

4 participants