Fix CInstantSend::GetTxLockRequest() (#2006)

Should fail for empty lock request
This commit is contained in:
UdjinM6 2018-03-21 14:09:28 +03:00 committed by GitHub
parent 15fac7c7e7
commit c0c998da35
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;