-
Notifications
You must be signed in to change notification settings - Fork 124
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
persist node name across restarts #1522
Comments
is it a good idea to put the node name into de config.toml? And then load the name from the file whenever the node initializes or reinitializes? |
@EclesioMeloJunior the name can already be specified using the config file, this issue is so that a random name isn't generated every time the node restarts (if none is specified), the node should use the same name unless it becomes re-initialized |
@noot I thought of the following logic:
So, when the node initializes we will generate a random name and store it, and when the node reinitializes we will retrieve the persisted name. But I have noticed that the method
So, if we store the node name in the database on initialization then when the node reinitialize the stored name will be lost? |
We initialize the node once but we can run it multiple times. Initialization is only needed if you want to start fresh. |
Describe the bug
The text was updated successfully, but these errors were encountered: