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

Store/access beacon LightClientBootstraps by neighborhood #340

Open
kdeme opened this issue Sep 20, 2024 · 0 comments
Open

Store/access beacon LightClientBootstraps by neighborhood #340

kdeme opened this issue Sep 20, 2024 · 0 comments

Comments

@kdeme
Copy link
Collaborator

kdeme commented Sep 20, 2024

Current Portal beacon specifications state that all types are stored for the full range by all nodes (potentially).
Requests and gossip happen in a random way and not by targeting closest to content id.

This is fine for the latest finality and optimistic update (only is 1 for each).
It is also fine for the LightClientUpdate:
LightClientUpdate size * MIN_EPOCHS_FOR_BLOCK_REQUESTS / 256 = ~3.5MB

But for the LightClientBootstrap the total storage is too large to be negligible:
LightClientBootstrap size * MIN_EPOCHS_FOR_BLOCK_REQUESTS = ~850MB

As this type has only individual access, and the content key is by hash, I think it would work fine to store this type based on its content id.
So for this only this type in the Portal beacon network a NH gossip and RFContent would be done. The others would still use the random versions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant