diff options
| author | Riccardo Spagni <ric@spagni.net> | 2016-09-01 11:31:58 +0200 |
|---|---|---|
| committer | Riccardo Spagni <ric@spagni.net> | 2016-09-01 11:31:58 +0200 |
| commit | 27c8713f5693554bb1ede025e01beecc4f687e3b (patch) | |
| tree | a60ca57241435edfa482d26e44f941acafb5fe36 /src | |
| parent | badd77068b11fe7b4b27f466e8f565aefa98218c (diff) | |
| parent | 85dc0ce3a517ae092846f64710416d2743a8e29e (diff) | |
| download | monzero-core-27c8713f5693554bb1ede025e01beecc4f687e3b.tar.gz monzero-core-27c8713f5693554bb1ede025e01beecc4f687e3b.tar.xz monzero-core-27c8713f5693554bb1ede025e01beecc4f687e3b.zip | |
Merge pull request #1027
85dc0ce wallet: sanity check on histogram response (moneromooo-monero)
Diffstat (limited to 'src')
| -rw-r--r-- | src/wallet/wallet2.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/wallet/wallet2.cpp b/src/wallet/wallet2.cpp index b5830f9c9..c6e2411b6 100644 --- a/src/wallet/wallet2.cpp +++ b/src/wallet/wallet2.cpp @@ -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)); + 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) { |
