diff options
| author | Cory Fields <[email protected]> | 2016-09-12 20:09:24 -0400 |
|---|---|---|
| committer | Pieter Wuille <[email protected]> | 2016-11-03 13:35:54 -0700 |
| commit | 5c2169cc3f263b39ba42d66bcf014163fada2390 (patch) | |
| tree | ee1bf3e109447040e883d4ba25bdfa4290b48a05 /src/net.cpp | |
| parent | net: switch all callers to connman for pushing messages (diff) | |
| download | discoin-5c2169cc3f263b39ba42d66bcf014163fada2390.tar.xz discoin-5c2169cc3f263b39ba42d66bcf014163fada2390.zip | |
drop the optimistic write counter hack
This is now handled properly in realtime.
Diffstat (limited to 'src/net.cpp')
| -rw-r--r-- | src/net.cpp | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/net.cpp b/src/net.cpp index 2cc14a222..2d6573f7f 100644 --- a/src/net.cpp +++ b/src/net.cpp @@ -1167,10 +1167,6 @@ void CConnman::ThreadSocketHandler() { TRY_LOCK(pnode->cs_vSend, lockSend); if (lockSend) { - if (pnode->nOptimisticBytesWritten) { - RecordBytesSent(pnode->nOptimisticBytesWritten); - pnode->nOptimisticBytesWritten = 0; - } if (!pnode->vSendMsg.empty()) { FD_SET(pnode->hSocket, &fdsetSend); continue; @@ -2582,7 +2578,6 @@ CNode::CNode(NodeId idIn, ServiceFlags nLocalServicesIn, int nMyStartingHeightIn minFeeFilter = 0; lastSentFeeFilter = 0; nextSendTimeFeeFilter = 0; - nOptimisticBytesWritten = 0; BOOST_FOREACH(const std::string &msg, getAllNetMessageTypes()) mapRecvBytesPerMsgCmd[msg] = 0; |