mirror of
https://github.com/monero-project/monero.git
synced 2025-05-07 22:25:00 -04:00
add a few checks where it seems appropriate
This commit is contained in:
parent
581994b61c
commit
25a7cfdb4a
7 changed files with 8 additions and 2 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue