mirror of
https://github.com/dashpay/dash.git
synced 2024-12-25 12:02:48 +01:00
Fix CInstantSend::GetTxLockRequest() (#2006)
Should fail for empty lock request
This commit is contained in:
parent
15fac7c7e7
commit
c0c998da35
@ -784,7 +784,7 @@ bool CInstantSend::GetTxLockRequest(const uint256& txHash, CTxLockRequest& txLoc
|
||||
LOCK(cs_instantsend);
|
||||
|
||||
std::map<uint256, CTxLockCandidate>::iterator it = mapTxLockCandidates.find(txHash);
|
||||
if(it == mapTxLockCandidates.end()) return false;
|
||||
if(it == mapTxLockCandidates.end() || !it->second.txLockRequest) return false;
|
||||
txLockRequestRet = it->second.txLockRequest;
|
||||
|
||||
return true;
|
||||
|
Loading…
Reference in New Issue
Block a user