feat: drop requirement of v20 for Asset Unlock transactions

This fork already happened and no versioning is required
This commit is contained in:
Konstantin Akimov 2024-09-14 12:13:30 +07:00
parent b3e9e5c981
commit f01338f607
No known key found for this signature in database
GPG Key ID: 2176C4A5D01EA524

View File

@ -52,9 +52,6 @@ static bool CheckSpecialTxInner(CDeterministicMNManager& dmnman, const Chainstat
case TRANSACTION_ASSET_LOCK: case TRANSACTION_ASSET_LOCK:
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 (!DeploymentActiveAfter(pindexPrev, consensusParams, Consensus::DEPLOYMENT_V20)) {
return state.Invalid(TxValidationResult::TX_CONSENSUS, "assetunlocks-before-v20");
}
return CheckAssetLockUnlockTx(chainman.m_blockman, qman, tx, pindexPrev, indexes, state); return CheckAssetLockUnlockTx(chainman.m_blockman, qman, tx, pindexPrev, indexes, state);
} }
} catch (const std::exception& e) { } catch (const std::exception& e) {