1
0
Fork 0
forked from lthn/blockchain

forbidding TX_FLAG_SIGNATURE_MODE_SEPARATE for miner txs

This commit is contained in:
cryptozoidberg 2024-01-24 19:26:42 +01:00
parent 95e8954c38
commit bbff52e937
No known key found for this signature in database
GPG key ID: 22DEB97A54C6FDEC

View file

@ -5865,6 +5865,11 @@ bool blockchain_storage::validate_tx_for_hardfork_specific_terms(const transacti
{
return false;
}
if (is_coinbase(tx) && get_tx_flags(tx) & TX_FLAG_SIGNATURE_MODE_SEPARATE)
{
LOG_ERROR("TX_FLAG_SIGNATURE_MODE_SEPARATE not allowed for coinbase tx");
return false;
}
}
return true;
}