aboutsummaryrefslogtreecommitdiff
path: root/src/cryptonote_core/tx_pool.cpp
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2015-10-06 16:22:19 +0100
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2015-10-11 13:02:55 +0100
commitac90d488e75592f215e8604e5faaf02c1d9cbfc3 (patch)
treee1279eaa4bb507416096820e2e12763d85403450 /src/cryptonote_core/tx_pool.cpp
parentfrom hard fork 2, claim a quantized reward in coinbase (diff)
downloadmonero-ac90d488e75592f215e8604e5faaf02c1d9cbfc3.tar.xz
from hard fork 2, all outputs must be decomposed
The wallet decomposes fully as of now too.
Diffstat (limited to '')
-rw-r--r--src/cryptonote_core/tx_pool.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/cryptonote_core/tx_pool.cpp b/src/cryptonote_core/tx_pool.cpp
index 12fd3fe62..dce64db99 100644
--- a/src/cryptonote_core/tx_pool.cpp
+++ b/src/cryptonote_core/tx_pool.cpp
@@ -125,6 +125,12 @@ namespace cryptonote
}
}
+ if (!m_blockchain.check_tx_outputs(tx))
+ {
+ LOG_PRINT_L1("Transaction with id= "<< id << " has at least one invalid outout");
+ tvc.m_verifivation_failed = true;
+ return false;
+ }
crypto::hash max_used_block_id = null_hash;
uint64_t max_used_block_height = 0;