forked from dashpay/dash
-
Notifications
You must be signed in to change notification settings - Fork 719
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
[P2P][RPC] Rework addnode behaviour #1640
Merged
random-zebra
merged 2 commits into
PIVX-Project:master
from
Fuzzbawls:2020_saneaddednode
May 26, 2020
Merged
[P2P][RPC] Rework addnode behaviour #1640
random-zebra
merged 2 commits into
PIVX-Project:master
from
Fuzzbawls:2020_saneaddednode
May 26, 2020
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* Use CNode::addeName to track whether a connection to a name is already open * A new connection to a previously-connected by-name addednode is only opened when the previous one closes (even if the name starts resolving to something else) * At most one connection is opened per addednode (even if the name resolves to multiple) * Unify the code between ThreadOpenAddedNodeConnections and getaddednodeinfo * Information about open connections is always returned, and the dns argument becomes a dummy * An IP address and inbound/outbound is only reported for the (at most 1) open connection
This was referenced May 23, 2020
furszy
approved these changes
May 26, 2020
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tested ACK 5e79989
random-zebra
approved these changes
May 26, 2020
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK 5e79989 and merging
random-zebra
added a commit
that referenced
this pull request
Jun 15, 2020
b36f743 Fix masternode service lookup (furszy) 65feb7f fixup styling (Fuzzbawls) 059ca2c net: fixup nits (Cory Fields) 5a51a5f net: Have LookupNumeric return a CService directly (Cory Fields) acd22b7 net: narrow include scope after moving to netaddress (Cory Fields) e5bea4b net: move CNetAddr/CService/CSubNet out of netbase (Cory Fields) 840d826 net: Add direct tests for new CSubNet constructors (Cory Fields) 63c46c6 net: Split resolving out of CSubNet (Fuzzbawls) a801a9e net: layer 2 CService abstraction (Fuzzbawls) 94732d2 Simplify checking of masternode.conf (Fuzzbawls) d6f81b5 RPC: Remove masternodeconnect command (Fuzzbawls) c4fe27e net: Split resolving out of CService (Cory Fields) 502343a net: Split resolving out of CNetAddr (Cory Fields) Pull request description: Backport of bitcoin#8128 as part of #1374. Based on top of #1640 Original Description: > CNetAddr/CService/CSubNet lose their string constructors, they must now have lookup operations performed externally. This means that functions/classes that depend on them are no longer dependent on any particular lookup mechanism. > > From a high level: New resolvers/parsers may now be used for net operations. libbtcnet will replace what remains of netbase with async versions. Additional work has been done in the following commits: * fcef585 - Removes a useless RPC command * 235c33e - Refactors the masternode.conf parsing with regards to valid ports * 3ddd35e - Adds additional sanity checks during client init for MN port numbers and listen options. ACKs for top commit: furszy: tested ACK b36f743 random-zebra: ACK b36f743 and merging... Tree-SHA512: 1663dc0591e3a4eeb50c1d3265ae125451bd9185e1e44e0cf36d0675fe93daf21d873ba0baa48f0e0e50b20f9313de2da5ee257eeb75c779cd07cebca61a3f99
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Partial backport of bitcoin#8113 as part of #1374.
Original Description:
I omitted the last point (commit f9f5cfc) as it conflicts with how our current regtest tests function.