aboutsummaryrefslogtreecommitdiff
path: root/src/net.h
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2016-09-19 16:46:18 +0200
committerWladimir J. van der Laan <laanwj@gmail.com>2016-09-19 16:46:50 +0200
commitf07424a6716c1fc37dc7a4d66d8efcdbba975852 (patch)
tree77b48bb374ca44b1a45b1480f3aea057fe41b441 /src/net.h
parent9ac01301f5c45698a5db356da9e8dbc1500f7c31 (diff)
parentf3552da81393a8e78ce3e2afed0b9c9d1ff5cee0 (diff)
Merge #8707: net: fix maxuploadtarget setting
f3552da net: fix maxuploadtarget setting (Cory Fields)
Diffstat (limited to 'src/net.h')
-rw-r--r--src/net.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/net.h b/src/net.h
index a48ee02c44..dbed8b3dd5 100644
--- a/src/net.h
+++ b/src/net.h
@@ -72,6 +72,8 @@ static const size_t SETASKFOR_MAX_SZ = 2 * MAX_INV_SZ;
static const unsigned int DEFAULT_MAX_PEER_CONNECTIONS = 125;
/** The default for -maxuploadtarget. 0 = Unlimited */
static const uint64_t DEFAULT_MAX_UPLOAD_TARGET = 0;
+/** The default timeframe for -maxuploadtarget. 1 day. */
+static const uint64_t MAX_UPLOAD_TIMEFRAME = 60 * 60 * 24;
/** Default for blocks only*/
static const bool DEFAULT_BLOCKSONLY = false;
@@ -120,6 +122,8 @@ public:
CClientUIInterface* uiInterface = nullptr;
unsigned int nSendBufferMaxSize = 0;
unsigned int nReceiveFloodSize = 0;
+ uint64_t nMaxOutboundTimeframe = 0;
+ uint64_t nMaxOutboundLimit = 0;
};
CConnman();
~CConnman();