diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2019-04-29 16:51:39 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2019-04-29 20:52:40 +0000 |
commit | 25a7cfdb4a4e652c7d0a0f93333d60b0b9d186d1 (patch) | |
tree | 28c3bdb49aafb1c27bc08378ab91ccd7d91a6c48 /tests/core_tests/wallet_tools.cpp | |
parent | Merge pull request #5486 (diff) | |
download | monero-25a7cfdb4a4e652c7d0a0f93333d60b0b9d186d1.tar.xz |
add a few checks where it seems appropriate
Diffstat (limited to 'tests/core_tests/wallet_tools.cpp')
-rw-r--r-- | tests/core_tests/wallet_tools.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/core_tests/wallet_tools.cpp b/tests/core_tests/wallet_tools.cpp index d9cee34c1..21a9455c0 100644 --- a/tests/core_tests/wallet_tools.cpp +++ b/tests/core_tests/wallet_tools.cpp @@ -163,6 +163,7 @@ bool wallet_tools::fill_tx_sources(tools::wallet2 * wallet, std::vector<cryptono void wallet_tools::gen_tx_src(size_t mixin, uint64_t cur_height, const tools::wallet2::transfer_details & td, cryptonote::tx_source_entry & src, block_tracker &bt) { + CHECK_AND_ASSERT_THROW_MES(mixin != 0, "mixin is zero"); src.amount = td.amount(); src.rct = td.is_rct(); |