mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-15 12:51:00 +02:00
[net] Add CNode helper for send byte accounting
This commit is contained in:
parent
60441a3432
commit
3eac5e7cd1
2 changed files with 8 additions and 1 deletions
|
|
@ -2860,7 +2860,7 @@ void CConnman::PushMessage(CNode* pnode, CSerializedNetMsg&& msg)
|
|||
bool optimisticSend(pnode->vSendMsg.empty());
|
||||
|
||||
//log total amount of bytes per message type
|
||||
pnode->mapSendBytesPerMsgType[msg.m_type] += nTotalSize;
|
||||
pnode->AccountForSentBytes(msg.m_type, nTotalSize);
|
||||
pnode->nSendSize += nTotalSize;
|
||||
|
||||
if (pnode->nSendSize > nSendBufferMaxSize) pnode->fPauseSend = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue