Node Peer ID Discrepancy: Which ID Should Be Considered Correct?

I have a question. At the moment, my node has two different peer IDs. The first one is from the log after running the software: “msg”:“established peer id”,“peer_id”:“Qmd2T8***o6KeWz”. The other one is from the output of node-1.4.21-linux-amd64 --peer-id . These two IDs are not the same. Which peer ID should I consider as the correct one?

It sounds to me like you’re running node-1.4.21-linux-amd64 --peer-id and it generated a new peer ID, i.e. a new .config/ directory instead of giving the peer ID of your running node.

To confirm, run node-1.4.21-linux-amd64 -config /path/to/your/nodes/.config --peer-id and compare it to what you’re seeing in the node’s logs.

2 Likes