mirror of
https://git.wownero.com/wownero/wownero.git
synced 2024-08-15 01:03:23 +00:00
Merge pull request #1027
85dc0ce
wallet: sanity check on histogram response (moneromooo-monero)
This commit is contained in:
commit
27c8713f56
1 changed files with 2 additions and 0 deletions
|
@ -2709,6 +2709,8 @@ void wallet2::get_outs(std::vector<std::vector<entry>> &outs, const std::list<tr
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
LOG_PRINT_L1("" << num_outs << " outputs of size " << print_money(amount));
|
LOG_PRINT_L1("" << num_outs << " outputs of size " << print_money(amount));
|
||||||
|
THROW_WALLET_EXCEPTION_IF(num_outs == 0, error::wallet_internal_error,
|
||||||
|
"histogram reports no outputs for " + boost::lexical_cast<std::string>(amount) + ", not even ours");
|
||||||
|
|
||||||
if (num_outs <= requested_outputs_count)
|
if (num_outs <= requested_outputs_count)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue