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

Need a way to restart the node so that the peerId and content addresses are not lost #671

Closed
25x8 opened this issue Nov 2, 2024 · 2 comments

Comments

@25x8
Copy link

25x8 commented Nov 2, 2024

There is no way to restart the node without generating a new peerId.
There is a need for such a mechanism, which is particularly relevant for private networks.

@tabcat
Copy link
Contributor

tabcat commented Nov 3, 2024

Hello @25x8,

This is likely due to the PeerId and content being stored in memory by default (MemoryDatastore). Another datastore with a non-volatile storage backend can be passed an an option to the createHelia function.

@tabcat
Copy link
Contributor

tabcat commented Nov 3, 2024

Some datastore implementations can be found here: https://github.com/ipfs/js-stores. Use one that is compatible with your environment.

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

2 participants