aboutsummaryrefslogtreecommitdiff
path: root/src/rpc/net.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Made the ForEachNode* functions in src/net.cpp more pragmatic and self ↵Jeremy Rubin2016-09-081-1/+0
| | | | documenting
* net: move nLocalServices/nRelevantServices to CConnmanCory Fields2016-09-081-1/+2
| | | | | These are in-turn passed to CNode at connection time. This allows us to offer different services to different peers (or test the effects of doing so).
* net: move send/recv statistics to CConnmanCory Fields2016-09-081-8/+10
|
* net: create generic functor accessors and move vNodes to CConnmanCory Fields2016-09-081-6/+7
|
* net: Add most functions needed for vNodes to CConnmanCory Fields2016-09-081-23/+13
|
* net: move added node functions to CConnmanCory Fields2016-09-081-11/+6
|
* net: move ban and addrman functions into CConnmanCory Fields2016-09-081-5/+12
|
* net: move OpenNetworkConnection into CConnmanCory Fields2016-09-081-1/+4
|
* Make the dummy argument to getaddednodeinfo optionalPieter Wuille2016-09-011-6/+5
|
* Merge #8163: Do not shadow global RPC table variable (tableRPC)Wladimir J. van der Laan2016-08-311-2/+2
|\ | | | | | | de1bbe3 Do not shadow global RPC table variable (tableRPC) (Pavel Janík)
| * Do not shadow global RPC table variable (tableRPC)Pavel Janík2016-08-251-2/+2
| |
* | Merge #8512: Trivial: Corrected JSON typo on setban of net.cppWladimir J. van der Laan2016-08-171-1/+1
|\ \ | |/ |/| | | 6ffd996 Corrected JSON typo on setban of net.cpp (Sev)
| * Corrected JSON typo on setban of net.cppSev2016-08-141-1/+1
| |
* | net: Split resolving out of CSubNetCory Fields2016-07-311-1/+1
| |
* | net: Split resolving out of CNetAddrCory Fields2016-07-311-2/+5
|/
* Rework addnode behaviourPieter Wuille2016-06-131-73/+22
| | | | | | | | | | * 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
* Merge #8065: Addrman offline attemptsWladimir J. van der Laan2016-06-081-1/+1
|\ | | | | | | | | 6182d10 Do not increment nAttempts by more than one for every Good connection. (Gregory Maxwell) c769c4a Avoid counting failed connect attempts when probably offline. (Gregory Maxwell)
| * Avoid counting failed connect attempts when probably offline.Gregory Maxwell2016-05-261-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If a node is offline failed outbound connection attempts will crank up the addrman counter and effectively blow away our state. This change reduces the problem by only counting attempts made while the node believes it has outbound connections to at least two netgroups. Connect and addnode connections are also not counted, as there is no reason to unequally penalize them for their more frequent connections -- though there should be no real effect from this unless their addnode configureation is later removed. Wasteful repeated connection attempts while only a few connections are up are avoided via nLastTry. This is still somewhat incomplete protection because our outbound peers could be down but not timed out or might all be on 'local' networks (although the requirement for multiple netgroups helps).
* | Merge #8049: Expose information on whether transaction relay is enabled in ↵Pieter Wuille2016-05-261-0/+2
|\ \ | |/ |/| | | | | | | | | `getnetwork` 1ab1dc3 rpc: Add `relaytxes` flag to `getnetworkinfo` (Wladimir J. van der Laan) 581ddff net: Add fRelayTxes flag (Wladimir J. van der Laan)
| * rpc: Add `relaytxes` flag to `getnetworkinfo`Wladimir J. van der Laan2016-05-121-0/+2
| | | | | | | | | | Re-work of PR #7841 by dragongem45. Closes #7771.
* | net: make Ban/Unban/ClearBan functionality consistentCory Fields2016-05-101-10/+0
|/ | | | | | | | - Ban/Unban/ClearBan call uiInterface.BannedListChanged() as necessary - Ban/Unban/ClearBan sync to disk if the operation is user-invoked - Mark node for disconnection automatically when banning - Lock cs_vNodes while setting disconnected - Don't spin in a tight loop while setting disconnected
* push back getaddednodeinfo dead valueinstagibbs2016-04-221-0/+1
|
* RPC: do not print ping info in getpeerinfo when no ping received yet, fix helpPavel Janík2016-04-091-5/+7
|
* rpc: Register calls where they are definedWladimir J. van der Laan2016-03-311-0/+22
| | | | | | | | | | | | Split out methods to every module, apart from 'help' and 'stop' which are implemented in rpcserver.cpp itself. - This makes it easier to add or remove RPC commands - no longer everything that includes rpcserver.h has to be rebuilt when there's a change there. - Cleans up `rpc/server.h` by getting rid of the huge cluttered list of function definitions. - Removes most of the bitcoin-specific code from rpcserver.cpp and .h. Continues #7307 for the non-wallet.
* move rpc* to rpc/Daniel Cousens2016-01-211-0/+628