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

Unstable libp2p Peer IDs #7

Open
ulope opened this issue Aug 6, 2024 · 0 comments
Open

Unstable libp2p Peer IDs #7

ulope opened this issue Aug 6, 2024 · 0 comments

Comments

@ulope
Copy link
Contributor

ulope commented Aug 6, 2024

When nodes are restarted with up their libp2p peer id changes.

The reason is that the compose stack contains a service to generate the keyper config file.
This is re-run on every up to ensure config changes are consistently applied.

Unfortunately this doesn't take into account that the peer id is generated as part of the config file generation.

The probably easiest solution is to make the configuration script (scripts/configure_keyper.sh) check for an existing config and re-use the peer id / node key from that.

ulope added a commit that referenced this issue Aug 23, 2024
Certain values that are stored in the Keyper config file are generated
during first run and are not available in the environment.

Previously these were lost on restart with `docker compose up`.

This now preserves it.

Fixes #7
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