feat: let asset locks be mined before v20

V20 is activated long time on mainnet and testnet, so, it doesn't matter anymore
This commit is contained in:
Konstantin Akimov 2024-08-15 16:55:50 +07:00
parent 85764c4b73
commit e0d97cf7ac
No known key found for this signature in database
GPG Key ID: 2176C4A5D01EA524

View File

@ -53,9 +53,6 @@ static bool CheckSpecialTxInner(CDeterministicMNManager& dmnman, const Chainstat
} }
return CheckMNHFTx(chainman, qman, tx, pindexPrev, state); return CheckMNHFTx(chainman, qman, tx, pindexPrev, state);
case TRANSACTION_ASSET_LOCK: case TRANSACTION_ASSET_LOCK:
if (!DeploymentActiveAfter(pindexPrev, consensusParams, Consensus::DEPLOYMENT_V20)) {
return state.Invalid(TxValidationResult::TX_CONSENSUS, "assetlocks-before-v20");
}
return CheckAssetLockUnlockTx(chainman.m_blockman, qman, tx, pindexPrev, indexes, state); return CheckAssetLockUnlockTx(chainman.m_blockman, qman, tx, pindexPrev, indexes, state);
case TRANSACTION_ASSET_UNLOCK: case TRANSACTION_ASSET_UNLOCK:
if (Params().NetworkIDString() == CBaseChainParams::REGTEST && !DeploymentActiveAfter(pindexPrev, consensusParams, Consensus::DEPLOYMENT_V20)) { if (Params().NetworkIDString() == CBaseChainParams::REGTEST && !DeploymentActiveAfter(pindexPrev, consensusParams, Consensus::DEPLOYMENT_V20)) {