mirror of
https://github.com/monero-project/monero.git
synced 2025-05-10 09:54:57 -04:00
change fork settings to allow pre-rct txes for one more fork cycle
This commit is contained in:
parent
cc85cc6a3f
commit
37bdf6ebe3
5 changed files with 19 additions and 14 deletions
|
@ -85,10 +85,15 @@ namespace cryptonote
|
|||
return false;
|
||||
}
|
||||
|
||||
const size_t max_tx_version = version == 1 ? 1 : 2;
|
||||
const size_t max_tx_version = (version <= 3) ? 1 : 2;
|
||||
if (tx.version > max_tx_version)
|
||||
{
|
||||
// v2 is the latest one we know
|
||||
tvc.m_verifivation_failed = true;
|
||||
return false;
|
||||
}
|
||||
const size_t min_tx_version = (version >= 5) ? 2 : 1;
|
||||
if (tx.version < min_tx_version)
|
||||
{
|
||||
tvc.m_verifivation_failed = true;
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue