aboutsummaryrefslogtreecommitdiff
path: root/src/net.h
diff options
context:
space:
mode:
authorJohn Newbery <john@johnnewbery.com>2019-11-05 14:00:30 -0500
committerJohn Newbery <john@johnnewbery.com>2020-04-23 12:54:03 -0400
commitb8580cacc70764ba5a48e3defb864d75e6c28626 (patch)
tree82b9c1d89a6f4ff2366fc67e6fc9abdb133b24f4 /src/net.h
parent47b94a337e1aad0c347fdfecba999b963ab51006 (diff)
downloadbitcoin-b8580cacc70764ba5a48e3defb864d75e6c28626.tar.xz
[net processing] Move net processing consts to net_processing.cpp
Diffstat (limited to 'src/net.h')
-rw-r--r--src/net.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/net.h b/src/net.h
index cec31bfd80..0d79efbba7 100644
--- a/src/net.h
+++ b/src/net.h
@@ -45,16 +45,10 @@ static const bool DEFAULT_WHITELISTRELAY = true;
/** Default for -whitelistforcerelay. */
static const bool DEFAULT_WHITELISTFORCERELAY = false;
-/** Time between pings automatically sent out for latency probing and keepalive (in seconds). */
-static const int PING_INTERVAL = 2 * 60;
/** Time after which to disconnect, after waiting for a ping response (or inactivity). */
static const int TIMEOUT_INTERVAL = 20 * 60;
/** Run the feeler connection loop once every 2 minutes or 120 seconds. **/
static const int FEELER_INTERVAL = 120;
-/** The maximum number of entries in an 'inv' protocol message */
-static const unsigned int MAX_INV_SZ = 50000;
-/** The maximum number of entries in a locator */
-static const unsigned int MAX_LOCATOR_SZ = 101;
/** The maximum number of new addresses to accumulate before announcing. */
static const unsigned int MAX_ADDR_TO_SEND = 1000;
/** Maximum length of incoming protocol messages (no message over 4 MB is currently acceptable). */