Use verifiedProRegTxHash.IsNull() instead of fMasternode to check for MN connections

fMasternode connections don't even relay anything anymore.
This commit is contained in:
Alexander Block 2020-04-09 07:25:55 +02:00
parent 8ade2f7957
commit 8a0f702f39

View File

@ -4078,7 +4078,7 @@ bool PeerLogicValidation::SendMessages(CNode* pto, std::atomic<bool>& interruptM
fSendTrickle = true;
// Use half the delay for regular outbound peers, as there is less privacy concern for them,
// and quarter the delay for Masternode outbound peers, as there is even less privacy concern in this case.
pto->nNextInvSend = PoissonNextSend(nNow, INVENTORY_BROADCAST_INTERVAL >> !pto->fInbound >> pto->fMasternode);
pto->nNextInvSend = PoissonNextSend(nNow, INVENTORY_BROADCAST_INTERVAL >> !pto->fInbound >> !pto->verifiedProRegTxHash.IsNull());
}
// Time to send but the peer has requested we not relay transactions.