Don't skip "safe TX" check when ChainLocks are not enforced yet (#2851)

This commit is contained in:
Alexander Block 2019-04-10 18:16:33 +02:00 committed by GitHub
parent 6fd9e51059
commit 225c3898d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -387,7 +387,7 @@ bool CChainLocksHandler::IsTxSafeForMining(const uint256& txid)
int64_t txAge = 0; int64_t txAge = 0;
{ {
LOCK(cs); LOCK(cs);
if (!isEnforced) { if (!isSporkActive) {
return true; return true;
} }
auto it = txFirstSeenTime.find(txid); auto it = txFirstSeenTime.find(txid);