In the options for geth I see --nodekey
listed but I can't seem to get it to (re)generate an enode url when starting a full node. When starting a bootnode this works for me as expected.
So should geth --nodkey=key.txt"
be (re)generating the same enode like I'm expecting or does that only work with bootnode --nodkey=key.txt
?
Best Answer
Yes
geth --nodkey=key.txt
will (re)generate the same enode url repeatedly as the cli options would suggest. It wasn't working for me due to the unfortunate combination of a typo in my sh script and a bad nodekey file.