From 1e6c13f9cf86136ef3bf0bd97965e413d3d4d73d Mon Sep 17 00:00:00 2001 From: moneroexamples Date: Thu, 18 Jul 2019 18:42:07 +0800 Subject: [PATCH] dont throw on output and key images failure to insert https://github.com/moneroexamples/openmonero/issues/154#issuecomment-512199055 --- src/TxSearch.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/TxSearch.cpp b/src/TxSearch.cpp index 96a730a..b1f09e4 100755 --- a/src/TxSearch.cpp +++ b/src/TxSearch.cpp @@ -396,8 +396,9 @@ for (auto const& tx_tuple: txs_data) << " in tx " << tx_hash_str << " in blk " << blk_height << ' ' << outputs_found; - throw TxSearchException("insert output_found: " - "no_rows_inserted is zero!"); + continue; + //throw TxSearchException("insert output_found: " + // "no_rows_inserted is zero!"); } } // if (!found_mine_outputs.empty()) @@ -586,8 +587,9 @@ for (auto const& tx_tuple: txs_data) << " in tx " << tx_hash_str << " in blk " << blk_height << ' ' << inputs_found; - throw TxSearchException( - "insert inputs_found: no_rows_inserted is zero!"); + continue; + //throw TxSearchException( + //"insert inputs_found: no_rows_inserted is zero!"); } } // if (!inputs_found.empty())