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

Skip required services and port checks when outgoing connections is a MN #2847

Merged
merged 2 commits into from
Apr 10, 2019

Conversation

codablock
Copy link

This fixes an issue seen on testnet where the connection loop avoids connecting to nodes with non-default ports. It is however well known that masternodes on testnet are using non-default ports, which leads to many/most masternodes not being considered for outgoing connections.

This PR fixes this by making an exception to this check when the address is known to be from a masternode. It also adds an exception to the required services check just in case we ever add services which are only announced by masternodes.

@codablock codablock added this to the 14.0 milestone Apr 9, 2019
@codablock
Copy link
Author

Just realized (by looking at Travis failures) that this depends on #2848 🙈 I'll rebase this PR after it is merged.

@codablock codablock force-pushed the pr_llmq_allow_different_port branch from 8265227 to f22b0dd Compare April 9, 2019 11:55
@codablock
Copy link
Author

Rebased on develop to fix the dependency on #2848

Copy link

@UdjinM6 UdjinM6 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

see inline comments

src/net.cpp Outdated Show resolved Hide resolved
src/net.cpp Show resolved Hide resolved
src/net.cpp Show resolved Hide resolved
Co-Authored-By: codablock <ablock84@gmail.com>
Copy link

@UdjinM6 UdjinM6 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utACK

(though imo ignoring required services check can't be seen as a sufficient protection from malicious MNs and won't make any difference)

@codablock codablock merged commit 27b2cd2 into dashpay:develop Apr 10, 2019
@codablock codablock deleted the pr_llmq_allow_different_port branch April 10, 2019 16:14
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

2 participants