aboutsummaryrefslogtreecommitdiff
path: root/src/cryptonote_core/tx_pool.cpp
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2016-08-14 11:30:44 +0100
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2016-08-28 21:30:31 +0100
commit0815c72df7ddfc35e46595274d5f463a9d17c7de (patch)
tree12a0a5850608fe95497f52f7c5285134842abc85 /src/cryptonote_core/tx_pool.cpp
parenttests: hard fork list must end with a 0 (diff)
downloadmonero-0815c72df7ddfc35e46595274d5f463a9d17c7de.tar.xz
core: allow v1 txes after HF 5 when sweeping unmixable outputs
Diffstat (limited to '')
-rw-r--r--src/cryptonote_core/tx_pool.cpp15
1 files changed, 0 insertions, 15 deletions
diff --git a/src/cryptonote_core/tx_pool.cpp b/src/cryptonote_core/tx_pool.cpp
index 2ed12eb5c..46fab4dcf 100644
--- a/src/cryptonote_core/tx_pool.cpp
+++ b/src/cryptonote_core/tx_pool.cpp
@@ -86,21 +86,6 @@ namespace cryptonote
return false;
}
- const size_t max_tx_version = (version <= 3) ? 1 : 2;
- if (tx.version > max_tx_version)
- {
- LOG_PRINT_L1("transaction version " << (unsigned)tx.version << " is higher than max accepted version " << max_tx_version);
- tvc.m_verifivation_failed = true;
- return false;
- }
- const size_t min_tx_version = (version >= 5) ? 2 : 1;
- if (tx.version < min_tx_version)
- {
- LOG_PRINT_L1("transaction version " << (unsigned)tx.version << " is lower than min accepted version " << min_tx_version);
- tvc.m_verifivation_failed = true;
- return false;
- }
-
// we do not accept transactions that timed out before, unless they're
// kept_by_block
if (!kept_by_block && m_timed_out_transactions.find(id) != m_timed_out_transactions.end())