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

Singleton swarm node discovers peers anyway #17708

Closed
petyaracz opened this issue Sep 19, 2018 · 1 comment
Closed

Singleton swarm node discovers peers anyway #17708

petyaracz opened this issue Sep 19, 2018 · 1 comment
Labels

Comments

@petyaracz
Copy link

System information

Geth version: 1.8.16-unstable
Swarm version: 0.3.4-unstable
OS & Version: OSX 10.13.2

Expected behaviour

I run a singleton node:

swarm --bzzaccount $BZZKEY --datadir $DATADIR --maxpeers 0 --nodiscover

No peer nodes are loaded.

Actual behaviour

When I check in the geth console

geth attach $BZZIPC admin.peers

It lists a bunch of peers -- I matched an id to a node running on swarm-gateways.net.

This has come up before -- apparently, even with --nodiscover, I need to delete bzz-peers.json so that my node doesn't pull in peers.

I can't find bzz-peers.json anywere. It should be in $DATADIR/swarm/$BZZKEY but it isn't.

When I run geth with the same parameters (--maxpeers 0 --nodiscover) it finds no nodes (works as expected).

Steps to reproduce the behaviour

swarm --bzzaccount $BZZKEY --datadir $DATADIR --maxpeers 0 --nodiscover

and then see if it found peers.

@nolash
Copy link
Contributor

nolash commented Sep 20, 2018

duplicate of ethersphere/swarm#864

@nolash nolash closed this as completed Sep 20, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants
@nolash @petyaracz and others