Make SocketSendData non-const

This commit is contained in:
Alexander Block 2020-04-07 14:27:06 +02:00
parent de931a25a3
commit 50fc3c5cce
2 changed files with 2 additions and 2 deletions

View File

@ -914,7 +914,7 @@ const uint256& CNetMessage::GetMessageHash() const
return data_hash;
}
size_t CConnman::SocketSendData(CNode *pnode) const EXCLUSIVE_LOCKS_REQUIRED(pnode->cs_vSend)
size_t CConnman::SocketSendData(CNode *pnode) EXCLUSIVE_LOCKS_REQUIRED(pnode->cs_vSend)
{
auto it = pnode->vSendMsg.begin();
size_t nSentSize = 0;

View File

@ -509,7 +509,7 @@ private:
NodeId GetNewNodeId();
size_t SocketSendData(CNode *pnode) const;
size_t SocketSendData(CNode *pnode);
//!check is the banlist has unwritten changes
bool BannedSetIsDirty();
//!set the "dirty" flag for the banlist