diff options
| author | Wladimir J. van der Laan <[email protected]> | 2016-09-19 16:46:18 +0200 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2016-09-19 16:46:50 +0200 |
| commit | f07424a6716c1fc37dc7a4d66d8efcdbba975852 (patch) | |
| tree | 77b48bb374ca44b1a45b1480f3aea057fe41b441 /src/net.cpp | |
| parent | Merge #8716: [qa] wallet: Check legacy wallet as well (diff) | |
| parent | net: fix maxuploadtarget setting (diff) | |
| download | discoin-f07424a6716c1fc37dc7a4d66d8efcdbba975852.tar.xz discoin-f07424a6716c1fc37dc7a4d66d8efcdbba975852.zip | |
Merge #8707: net: fix maxuploadtarget setting
f3552da net: fix maxuploadtarget setting (Cory Fields)
Diffstat (limited to 'src/net.cpp')
| -rw-r--r-- | src/net.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/net.cpp b/src/net.cpp index 38b1e7926..c32f81d8d 100644 --- a/src/net.cpp +++ b/src/net.cpp @@ -2046,9 +2046,7 @@ bool CConnman::Start(boost::thread_group& threadGroup, CScheduler& scheduler, st { nTotalBytesRecv = 0; nTotalBytesSent = 0; - nMaxOutboundLimit = 0; nMaxOutboundTotalBytesSentInCycle = 0; - nMaxOutboundTimeframe = 60*60*24; //1 day nMaxOutboundCycleStartTime = 0; nRelevantServices = connOptions.nRelevantServices; @@ -2060,6 +2058,9 @@ bool CConnman::Start(boost::thread_group& threadGroup, CScheduler& scheduler, st nSendBufferMaxSize = connOptions.nSendBufferMaxSize; nReceiveFloodSize = connOptions.nSendBufferMaxSize; + nMaxOutboundLimit = connOptions.nMaxOutboundLimit; + nMaxOutboundTimeframe = connOptions.nMaxOutboundTimeframe; + SetBestHeight(connOptions.nBestHeight); clientInterface = connOptions.uiInterface; |