Closed jeliasson closed 2 years ago
@jeliasson thank you for opening the issue.
I believe that the identityPrivateKey
was removed in hornet 1.0.5
Do you want to open a PR to remove all the p2pidentity
code from the hornet-playbook?
If so, that would be great! That includes the code snippet you've shown (and menu items) and also this code.
I don't think there's a need for this anymore. I believe that users ought to backup their databases directories should they desire to keep their node's ID.
I accidentally ran
Set node Peer ID
inhorc
and that, without confirmation prompt, tried to re-generate new peer ID and it's key. Unfortunately, it looks likegohornet/hornet
image has changed command line for p2pidentity fromtools p2pidentity
totools p2pidentity-gen
. As a result, the private key and peer id is malformed.Running the command manually
Running the command with p2pidentity-gen
I have not digged into much depth, but it looks like this breaks the current version. Further more, variables
PRIVATE_KEY
andPEER_ID
might need to be reconstructed.https://github.com/nuriel77/hornet-playbook/blob/da805c42240cd20ccffe728baabba937f944d456/roles/hornet/files/horc#L1391-L1395
@nuriel77 Please let me know if you see this as a bug, and if you'd like some help addressing it in a PR. Also, can you kindly let me know if there is any backup being done in the original setup process.
Thanks!