Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

PeerId inconsistent between subkey and the printout when starting the node #7082

Closed
kaichaosun opened this issue Sep 11, 2020 · 2 comments
Closed
Labels
I3-bug The node fails to follow expected behavior.

Comments

@kaichaosun
Copy link
Contributor

The subcommand (generate-node-key) of subkey prints a PeerId.
Starting the node with --node-key specifying the generated private key printout another PeerId.

image

@romanb
Copy link
Contributor

romanb commented Sep 11, 2020

This is caused by a bug / regression in generate-node-key, which at some point started to hex-encode the key it writes to the file. When the node is started with --node-key-file there is no hex-decoding taking place, so in effect the node gets a different secret key and thus a different keypair and peer ID than what was seen by generate-node-key. See #7052 (comment).

@kaichaosun kaichaosun added the I3-bug The node fails to follow expected behavior. label Sep 11, 2020
@tomaka
Copy link
Contributor

tomaka commented Sep 11, 2020

Closing as duplicate of #7045

@tomaka tomaka closed this as completed Sep 11, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
I3-bug The node fails to follow expected behavior.
Projects
None yet
Development

No branches or pull requests

3 participants