Fix IS-locks sync via mempool p2p command (#3766)

This commit is contained in:
UdjinM6 2020-10-16 06:01:20 +03:00
parent 9ceee5df20
commit 7b72e98092
No known key found for this signature in database
GPG Key ID: 83592BD1400D58D9

View File

@ -4158,8 +4158,8 @@ bool PeerLogicValidation::SendMessages(CNode* pto, std::atomic<bool>& interruptM
CInv islockInv(MSG_ISLOCK, islockHash);
pto->filterInventoryKnown.insert(islockHash);
LogPrint(BCLog::NET, "SendMessages -- queued inv: %s index=%d peer=%d\n", inv.ToString(), vInv.size(), pto->GetId());
vInv.push_back(inv);
LogPrint(BCLog::NET, "SendMessages -- queued inv: %s index=%d peer=%d\n", islockInv.ToString(), vInv.size(), pto->GetId());
vInv.push_back(islockInv);
if (vInv.size() == MAX_INV_SZ) {
LogPrint(BCLog::NET, "SendMessages -- pushing inv's: count=%d peer=%d\n", vInv.size(), pto->GetId());
connman->PushMessage(pto, msgMaker.Make(NetMsgType::INV, vInv));