aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorwarptangent <warptangent@inbox.com>2015-01-30 17:28:38 -0800
committerwarptangent <warptangent@inbox.com>2015-02-01 19:29:03 -0800
commitc8d27fb38df4a3170755390959e388cebd229bd2 (patch)
treeafb6c08d198e01786a6a88bf8f515bb1e01a4c7e /src
parentUpdate recently added log statement to fix possible null dereference (diff)
downloadmonero-c8d27fb38df4a3170755390959e388cebd229bd2.tar.xz
Blockchain: reflect assert behavior of blockchain_storage for get_tx_outputs_gindexs()
Diffstat (limited to 'src')
-rw-r--r--src/cryptonote_core/blockchain.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cryptonote_core/blockchain.cpp b/src/cryptonote_core/blockchain.cpp
index 8740efb9f..7225d5fec 100644
--- a/src/cryptonote_core/blockchain.cpp
+++ b/src/cryptonote_core/blockchain.cpp
@@ -1808,6 +1808,8 @@ bool Blockchain::get_tx_outputs_gindexs(const crypto::hash& tx_id, std::vector<u
// get amount output indexes, currently referred to in parts as "output global indices", but they are actually specific to amounts
indexs = m_db->get_tx_amount_output_indices(tx_id);
+ CHECK_AND_ASSERT_MES(indexs.size(), false, "internal error: global indexes for transaction " << tx_id << " is empty");
+
return true;
}
//------------------------------------------------------------------