@@ -956,7 +956,7 @@ static void RelayAddress(const CAddress& addr, bool fReachable, CConnman& connma
956
956
connman.ForEachNodeThen (std::move (sortfunc), std::move (pushfunc));
957
957
}
958
958
959
- void static ProcessGetData (CNode* pfrom, const Consensus::Params& consensusParams, CConnman& connman, std::atomic<bool >& interruptMsgProc)
959
+ void static ProcessGetData (CNode* pfrom, const Consensus::Params& consensusParams, CConnman& connman, const std::atomic<bool >& interruptMsgProc)
960
960
{
961
961
std::deque<CInv>::iterator it = pfrom->vRecvGetData .begin ();
962
962
std::vector<CInv> vNotFound;
@@ -1158,7 +1158,7 @@ inline void static SendBlockTransactions(const CBlock& block, const BlockTransac
1158
1158
connman.PushMessage (pfrom, msgMaker.Make (nSendFlags, NetMsgType::BLOCKTXN, resp));
1159
1159
}
1160
1160
1161
- bool static ProcessMessage (CNode* pfrom, std::string strCommand, CDataStream& vRecv, int64_t nTimeReceived, const CChainParams& chainparams, CConnman& connman, std::atomic<bool >& interruptMsgProc)
1161
+ bool static ProcessMessage (CNode* pfrom, const std::string& strCommand, CDataStream& vRecv, int64_t nTimeReceived, const CChainParams& chainparams, CConnman& connman, const std::atomic<bool >& interruptMsgProc)
1162
1162
{
1163
1163
LogPrint (" net" , " received: %s (%u bytes) peer=%d\n " , SanitizeString (strCommand), vRecv.size (), pfrom->id );
1164
1164
if (IsArgSet (" -dropmessagestest" ) && GetRand (GetArg (" -dropmessagestest" , 0 )) == 0 )
@@ -2579,7 +2579,7 @@ bool static ProcessMessage(CNode* pfrom, std::string strCommand, CDataStream& vR
2579
2579
return true ;
2580
2580
}
2581
2581
2582
- bool ProcessMessages (CNode* pfrom, CConnman& connman, std::atomic<bool >& interruptMsgProc)
2582
+ bool ProcessMessages (CNode* pfrom, CConnman& connman, const std::atomic<bool >& interruptMsgProc)
2583
2583
{
2584
2584
const CChainParams& chainparams = Params ();
2585
2585
//
@@ -2712,7 +2712,7 @@ class CompareInvMempoolOrder
2712
2712
}
2713
2713
};
2714
2714
2715
- bool SendMessages (CNode* pto, CConnman& connman, std::atomic<bool >& interruptMsgProc)
2715
+ bool SendMessages (CNode* pto, CConnman& connman, const std::atomic<bool >& interruptMsgProc)
2716
2716
{
2717
2717
const Consensus::Params& consensusParams = Params ().GetConsensus ();
2718
2718
{
0 commit comments