add a few checks where it seems appropriate

This commit is contained in:
moneromooo-monero 2019-04-29 16:51:39 +00:00
parent 581994b61c
commit 25a7cfdb4a
No known key found for this signature in database
GPG key ID: 686F07454D6CEFC3
7 changed files with 8 additions and 2 deletions

View file

@ -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();