diff options
author | luigi1111 <luigi1111w@gmail.com> | 2019-07-24 13:57:06 -0500 |
---|---|---|
committer | luigi1111 <luigi1111w@gmail.com> | 2019-07-24 13:57:06 -0500 |
commit | e3de4aa68bedf7a7adfaf53cc2c132a74dc7fb08 (patch) | |
tree | 134d499069659c6bbbfd372d32d45a93ea718184 /tests/core_tests/chaingen.cpp | |
parent | Merge pull request #5473 (diff) | |
parent | remove unused code (diff) | |
download | monero-e3de4aa68bedf7a7adfaf53cc2c132a74dc7fb08.tar.xz |
Merge pull request #5502
25a7cfd add a few checks where it seems appropriate (moneromooo-monero)
1a66a86 remove unused code (moneromooo-monero)
Diffstat (limited to 'tests/core_tests/chaingen.cpp')
-rw-r--r-- | tests/core_tests/chaingen.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/core_tests/chaingen.cpp b/tests/core_tests/chaingen.cpp index 614585349..8dde1f475 100644 --- a/tests/core_tests/chaingen.cpp +++ b/tests/core_tests/chaingen.cpp @@ -546,6 +546,7 @@ void block_tracker::global_indices(const cryptonote::transaction *tx, std::vecto void block_tracker::get_fake_outs(size_t num_outs, uint64_t amount, uint64_t global_index, uint64_t cur_height, std::vector<get_outs_entry> &outs){ auto & vct = m_outs[amount]; const size_t n_outs = vct.size(); + CHECK_AND_ASSERT_THROW_MES(n_outs > 0, "n_outs is 0"); std::set<size_t> used; std::vector<size_t> choices; |