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

Use trinity.Server in LightNode #1179

Merged
merged 1 commit into from Aug 14, 2018
Merged

Conversation

gsalgado
Copy link
Collaborator

This avoids duplicating some logic to run a PeerPool/DiscoveryService,
but also causes LightNode to setup NAT port forwarding and accept
incoming peer connections.

Also changed the default peer limit when running in light mode to half
of the limit used when in full mode.

Closes: #1003

This avoids duplicating some logic to run a PeerPool/DiscoveryService,
but also causes LightNode to setup NAT port forwarding and accept
incoming peer connections.

Also changed the default peer limit when running in light mode to half
of the limit used when in full mode.

Closes: ethereum#1003
@carver
Copy link
Contributor

carver commented Aug 14, 2018

Also changed the default peer limit when running in light mode to half
of the limit used when in full mode.

What's the intuition behind this change?

@gsalgado
Copy link
Collaborator Author

@carver a lower default limit seemed to make sense for light mode as that generally means low-end hardware. if we don't accept incoming connections that probably doesn't matter as with discv4 we'd probably never find more than a handful peers, but now that we accept incoming connections we're more likely to reach the limit

@gsalgado gsalgado merged commit e9f1216 into ethereum:master Aug 14, 2018
voith pushed a commit to voith/py-evm that referenced this pull request Aug 16, 2018
This avoids duplicating some logic to run a PeerPool/DiscoveryService,
but also causes LightNode to setup NAT port forwarding and accept
incoming peer connections.

Also changed the default peer limit when running in light mode to half
of the limit used when in full mode.

Closes: ethereum#1003
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants