mirror of
https://github.com/monero-project/monero.git
synced 2026-08-03 01:15:55 -07:00
Condition v2 txes on v3 hard fork
This commit is contained in:
@@ -84,7 +84,9 @@ namespace cryptonote
|
||||
tvc.m_verifivation_failed = true;
|
||||
return false;
|
||||
}
|
||||
if (tx.version > 2) // TODO: max 1/2 needs to be conditioned by a hard fork
|
||||
|
||||
const size_t max_tx_version = version == 1 ? 1 : 2;
|
||||
if (tx.version > max_tx_version)
|
||||
{
|
||||
// v2 is the latest one we know
|
||||
tvc.m_verifivation_failed = true;
|
||||
|
||||
Reference in New Issue
Block a user