-
Notifications
You must be signed in to change notification settings - Fork 20.1k
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
Cannot parse 32 bytes enodes in TOML configuration file #21156
Comments
The enode addresses are public keys, which are 64 bytes, so 128 hex characters. The PR you linked introduces an internal 32 byte representation to allow different crypto in the future. I don't think it was meant to change anything related to enode addresses. |
I see, so if we were to get the enode from a nodekey with the bootnode binary, is there a way to get the 64 bytes representation? Right now, it is printing it in 32 bytes format, is this intended / expected? I 'd expect that the output of the bootnode utility could be used in the config file. The only way I have found to get the 64 bytes format is to actually boot up a geth node and check the console output, where the enode is shown in its 64 bytes format. Related: |
I will add a new command to cmd/devp2p to create enode URLs from a private key. |
#21202 adds those commands. |
System information
Geth
Version: 1.9.14-stable
Git Commit: 6d74d1e
Git Commit Date: 20200513
Architecture: amd64
Protocol Versions: [65 64 63]
Go Version: go1.14.2
Operating System: linux
GOPATH=
GOROOT=/usr/local/go
Expected behaviour
I expect to be able to run geth with a TOML config file.
Actual behaviour
Unable to start geth with a config file where bootnodes are specified in the 32 bytes format (don't know if 64 bytes format works). My current guess is this change #17643 wasn't propagated to the config parser, but have not taken a look into the sources.
Steps to reproduce the behaviour
Take any TOML file with bootnodes specified, for example the following one:
And try to run geth,
geth --config /config/config.toml --nousb
.Backtrace
The text was updated successfully, but these errors were encountered: