diff options
| author | Cory Fields <[email protected]> | 2016-05-27 00:00:02 -0400 |
|---|---|---|
| committer | Cory Fields <[email protected]> | 2016-09-08 13:06:00 -0400 |
| commit | fa2f8bc47fa17deccb281b750ff6c48402c5b1ce (patch) | |
| tree | 1d46e25e4ceb8401d6b373f40fea839de2980fa9 /src/net.cpp | |
| parent | net: Introduce CConnection::Options to avoid passing so many params (diff) | |
| download | discoin-fa2f8bc47fa17deccb281b750ff6c48402c5b1ce.tar.xz discoin-fa2f8bc47fa17deccb281b750ff6c48402c5b1ce.zip | |
net: add nSendBufferMaxSize/nReceiveFloodSize to CConnection::Options
Diffstat (limited to 'src/net.cpp')
| -rw-r--r-- | src/net.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/net.cpp b/src/net.cpp index 8ea600b37..9b18a3274 100644 --- a/src/net.cpp +++ b/src/net.cpp @@ -2063,8 +2063,8 @@ bool CConnman::Start(boost::thread_group& threadGroup, CScheduler& scheduler, st nMaxConnections = connOptions.nMaxConnections; nMaxOutbound = std::min((connOptions.nMaxOutbound), nMaxConnections); - nSendBufferMaxSize = 1000*GetArg("-maxsendbuffer", DEFAULT_MAXSENDBUFFER); - nReceiveFloodSize = 1000*GetArg("-maxreceivebuffer", DEFAULT_MAXRECEIVEBUFFER); + nSendBufferMaxSize = connOptions.nSendBufferMaxSize; + nReceiveFloodSize = connOptions.nSendBufferMaxSize; SetBestHeight(connOptions.nBestHeight); |