mirror of
https://github.com/dashpay/dash.git
synced 2024-12-25 12:02:48 +01:00
instantsend: Add islocks created from recovered sigs to the queue (#4422)
Processing them asap can lead to a race condition
This commit is contained in:
parent
e408f91573
commit
43183f6aab
@ -731,7 +731,13 @@ void CInstantSendManager::HandleNewInstantSendLockRecoveredSig(const llmq::CReco
|
||||
}
|
||||
|
||||
islock->sig = recoveredSig.sig;
|
||||
ProcessInstantSendLock(-1, ::SerializeHash(*islock), islock);
|
||||
auto hash = ::SerializeHash(*islock);
|
||||
|
||||
LOCK(cs);
|
||||
if (pendingInstantSendLocks.count(hash) || db.KnownInstantSendLock(hash)) {
|
||||
return;
|
||||
}
|
||||
pendingInstantSendLocks.emplace(hash, std::make_pair(-1, islock));
|
||||
}
|
||||
|
||||
void CInstantSendManager::ProcessMessage(CNode* pfrom, const std::string& strCommand, CDataStream& vRecv)
|
||||
|
Loading…
Reference in New Issue
Block a user