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

Running with configuration file #243

Closed
janus opened this issue Feb 16, 2021 · 2 comments
Closed

Running with configuration file #243

janus opened this issue Feb 16, 2021 · 2 comments
Assignees
Labels
question Further information is requested

Comments

@janus
Copy link

janus commented Feb 16, 2021

I tried using this link, https://github.com/libp2p/go-libp2p-daemon/blob/master/specs/CONFIG.md, to test how to running configuration, but I got error message.
$ p2pd -f ./DO.json 2021/02/16 11:52:18 failed to parse multiaddr "\"/unix/tmp/p2pd.sock\"": must begin with /

How would I get this issue resolved? And is it possible to have something like the below in configuration file?

{ 
  "ID": "Qma3GsJmB47xYuyahPZPSadh1avvxfyYQwk8R3UnFrQ6aP"
  "PublicKey": 'xxxxxxxxx',
  "PrivateKey" : "yyyyyyyyyy",
}

Thanks

@aschmahmann aschmahmann added the bug Something isn't working label Mar 15, 2021
@Stebalien Stebalien added question Further information is requested and removed bug Something isn't working labels Mar 15, 2021
@Stebalien
Copy link
Member

to test how to running configuration, but I got error message

You have quoted your multiaddr twice, remove the extra quotes.

And is it possible to have something like the below in configuration file?

No. You need set the config's ID property to a path to a libp2p key file. You can generate a key with the p2p-keygen tool (in this repo).

I've filed an issue to document this better: #247.

@janus
Copy link
Author

janus commented May 26, 2021

@Stebalien Thanks so much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants