mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-12 23:18:14 +01:00
drop the optimistic write counter hack
This is now handled properly in realtime.
This commit is contained in:
committed by
Pieter Wuille
parent
ea3326891d
commit
5c2169cc3f
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user