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

Not losing related peers info on restart #1

Closed
pgmemk opened this issue Nov 5, 2020 · 1 comment
Closed

Not losing related peers info on restart #1

pgmemk opened this issue Nov 5, 2020 · 1 comment
Assignees

Comments

@pgmemk
Copy link
Member

pgmemk commented Nov 5, 2020

Problem

In this version of multi-hyperbee the related peers are saved only in memory.
That means that if the device restarts there is no info for restoring the relationship.

Solution

  • Save the list of related peers as a manifest in store hyperbee (multi-hyperbee has local store, local diff and many remote diff replicas.
  • Save the name of this key in the Header (first block in hyperbee or any other hyper data structure)
  • Use this key to save/update the manifest every time the new peer is added/removed.

Discuss if this works for other multi-feed structures

dat-ecosystem/comm-comm#134

@pgmemk pgmemk self-assigned this Nov 5, 2020
@pgmemk
Copy link
Member Author

pgmemk commented Nov 12, 2020

Implemented as planned.

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

No branches or pull requests

1 participant