added belt and braces to prevent CONVERT TXs from being attempted; integrated spend authority proof support into wallet; bumped version number

This commit is contained in:
Some Random Crypto Guy
2024-12-16 14:07:37 +00:00
parent 82d706aacb
commit e15dbb5db2
6 changed files with 113 additions and 52 deletions
+9
View File
@@ -3671,6 +3671,15 @@ bool Blockchain::check_tx_type_and_version(const transaction& tx, tx_verificatio
return false;
}
}
// Make sure CONVERT TXs are disabled until we are ready - belt and braces!
if (hf_version < HF_VERSION_ENABLE_CONVERT) {
if (tx.type == cryptonote::transaction_type::CONVERT) {
MERROR("CONVERT TXs are not permitted prior to v" + std::to_string(HF_VERSION_ENABLE_CONVERT));
tvc.m_version_mismatch = true;
return false;
}
}
return true;
}