mirror of
https://github.com/dashpay/dash.git
synced 2024-12-25 12:02:48 +01:00
chainlocks: Send an inv for the best ChainLock we have when replying to mempool
p2p message (#3962)
This commit is contained in:
parent
2aa584ba33
commit
3c768739fc
@ -4245,6 +4245,14 @@ bool PeerLogicValidation::SendMessages(CNode* pto)
|
||||
if (!llmq::quorumInstantSendManager->GetInstantSendLockHashByTxid(hash, islockHash)) continue;
|
||||
queueAndMaybePushInv(CInv(MSG_ISLOCK, islockHash));
|
||||
}
|
||||
|
||||
// Send an inv for the best ChainLock we have
|
||||
const auto& clsig = llmq::chainLocksHandler->GetBestChainLock();
|
||||
if (!clsig.IsNull()) {
|
||||
uint256 chainlockHash = ::SerializeHash(clsig);
|
||||
queueAndMaybePushInv(CInv(MSG_CLSIG, chainlockHash));
|
||||
}
|
||||
|
||||
pto->timeLastMempoolReq = GetTime();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user