mirror of
https://git.wownero.com/wownero/wownero.git
synced 2024-08-15 01:03:23 +00: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
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue