@@ -4164,22 +4164,18 @@ bool PeerManagerImpl::ProcessMessages(CNode* pfrom, std::atomic<bool>& interrupt
4164
4164
}
4165
4165
4166
4166
msg.SetVersion (pfrom->GetCommonVersion ());
4167
- const std::string& msg_type = msg.m_type ;
4168
-
4169
- // Message size
4170
- unsigned int nMessageSize = msg.m_message_size ;
4171
4167
4172
4168
try {
4173
- ProcessMessage (*pfrom, msg_type , msg.m_recv , msg.m_time , interruptMsgProc);
4169
+ ProcessMessage (*pfrom, msg. m_type , msg.m_recv , msg.m_time , interruptMsgProc);
4174
4170
if (interruptMsgProc) return false ;
4175
4171
{
4176
4172
LOCK (peer->m_getdata_requests_mutex );
4177
4173
if (!peer->m_getdata_requests .empty ()) fMoreWork = true ;
4178
4174
}
4179
4175
} catch (const std::exception & e) {
4180
- LogPrint (BCLog::NET, " %s(%s, %u bytes): Exception '%s' (%s) caught\n " , __func__, SanitizeString (msg_type ), nMessageSize , e.what (), typeid (e).name ());
4176
+ LogPrint (BCLog::NET, " %s(%s, %u bytes): Exception '%s' (%s) caught\n " , __func__, SanitizeString (msg. m_type ), msg. m_message_size , e.what (), typeid (e).name ());
4181
4177
} catch (...) {
4182
- LogPrint (BCLog::NET, " %s(%s, %u bytes): Unknown exception caught\n " , __func__, SanitizeString (msg_type ), nMessageSize );
4178
+ LogPrint (BCLog::NET, " %s(%s, %u bytes): Unknown exception caught\n " , __func__, SanitizeString (msg. m_type ), msg. m_message_size );
4183
4179
}
4184
4180
4185
4181
return fMoreWork ;
0 commit comments