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

out_peers setting not respected in monero.conf #4754

Closed
jlopp opened this issue Oct 29, 2018 · 3 comments

Comments

@jlopp
Copy link

commented Oct 29, 2018

I've been experiencing unexpected behavior regarding the out_peers setting.

If I put "out_peers=40" in monero.conf and start monerod, it only creates 8 outgoing peers.
I've also tried "out-peers=40" in monero.conf to the same effect.

However, if monerod is running and I set out_peers dynamically, it immediately creates a lot of outgoing peer connections.

So it's unclear how to achieve the desired number of outgoing connections via the conf file

@xiphon

This comment has been minimized.

Copy link
Contributor

commented Oct 29, 2018

If I put "out_peers=40" in monero.conf and start monerod, it only creates 8 outgoing peers.
I've also tried "out-peers=40" in monero.conf to the same effect.

monerod won't start if it can't parse config file parameter, it will print a error and exit. out-peers=40 is correct.

If it doesn't exit on invalid option in the config (out_peers=40), that means it didn't try to parse this config at all. Do you have --config-file=monero.conf in the command line?

@iDunk5400

This comment has been minimized.

Copy link
Contributor

commented Oct 29, 2018

You either have to supply a config file parameter as stated above when using a non-default config file, or use the default config file bitmonero.conf (not created by default).

@jlopp

This comment has been minimized.

Copy link
Author

commented Oct 29, 2018

Drat, that explains everything - confirmed. Have you ever considered generating an empty conf file on first startup so that it's more obvious to newbies what the conf file should be named?

@jlopp jlopp closed this Oct 29, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.