aboutsummaryrefslogtreecommitdiff
path: root/src/cryptonote_core/tx_pool.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/cryptonote_core/tx_pool.cpp')
-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;