diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2015-10-06 16:22:19 +0100 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2015-10-11 13:02:55 +0100 |
commit | ac90d488e75592f215e8604e5faaf02c1d9cbfc3 (patch) | |
tree | e1279eaa4bb507416096820e2e12763d85403450 /src/cryptonote_core/tx_pool.cpp | |
parent | from hard fork 2, claim a quantized reward in coinbase (diff) | |
download | monero-ac90d488e75592f215e8604e5faaf02c1d9cbfc3.tar.xz |
from hard fork 2, all outputs must be decomposed
The wallet decomposes fully as of now too.
Diffstat (limited to 'src/cryptonote_core/tx_pool.cpp')
-rw-r--r-- | src/cryptonote_core/tx_pool.cpp | 6 |
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; |