bitcoin/src/rpc
Gregory Maxwell c769c4af11 Avoid counting failed connect attempts when probably offline.
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).
2016-05-26 12:56:27 +00:00
..
blockchain.cpp Rename ReconsiderBlock func to reflect real behavior 2016-05-09 11:26:37 -04:00
client.cpp Merge #7793: [doxygen] Fix member comments 2016-04-05 17:49:47 +02:00
client.h move rpc* to rpc/ 2016-01-21 08:36:55 +11:00
mining.cpp auto_ptr → unique_ptr 2016-04-28 13:43:32 +02:00
misc.cpp Create signmessagewithprivkey rpc 2016-04-27 06:43:39 -04:00
net.cpp Avoid counting failed connect attempts when probably offline. 2016-05-26 12:56:27 +00:00
protocol.cpp move rpc* to rpc/ 2016-01-21 08:36:55 +11:00
protocol.h move rpc* to rpc/ 2016-01-21 08:36:55 +11:00
rawtransaction.cpp Remove unneeded feerate param from RelayTransaction/AcceptToMemoryPool. 2016-05-16 04:10:06 +00:00
register.h rpc: Register calls where they are defined 2016-03-31 10:48:32 +02:00
server.cpp Add strict flag to RPCTypeCheckObj 2016-04-15 14:55:52 +02:00
server.h Add strict flag to RPCTypeCheckObj 2016-04-15 14:55:52 +02:00