diff options
| author | Pieter Wuille <[email protected]> | 2016-05-28 15:32:30 +0200 |
|---|---|---|
| committer | Pieter Wuille <[email protected]> | 2016-06-13 23:53:06 +0200 |
| commit | 1111b80df84aa7bc72fbddcc7bafde43f0835d90 (patch) | |
| tree | 62c4a019d9f1fab94fea3894735ff77d2bc1ffff /src/netbase.cpp | |
| parent | Merge #7749: Enforce expected outbound services (diff) | |
| download | discoin-1111b80df84aa7bc72fbddcc7bafde43f0835d90.tar.xz discoin-1111b80df84aa7bc72fbddcc7bafde43f0835d90.zip | |
Rework addnode behaviour
* 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
Diffstat (limited to 'src/netbase.cpp')
0 files changed, 0 insertions, 0 deletions