diff options
| author | luigi1111 <luigi1111w@gmail.com> | 2025-10-07 15:25:05 -0400 |
|---|---|---|
| committer | luigi1111 <luigi1111w@gmail.com> | 2025-10-07 15:25:05 -0400 |
| commit | fb76bc4d98483eec38c10f30d399001b197d1028 (patch) | |
| tree | a10e07a8bb6f33d4c0871ced70c6d3bbb341dca5 | |
| parent | 020d980647de90c8532b1ce39f976f0e545aab3a (diff) | |
| parent | 18299929706ef29a98d0c301e2b41a3db932933a (diff) | |
| download | monzero-core-fb76bc4d98483eec38c10f30d399001b197d1028.tar.gz monzero-core-fb76bc4d98483eec38c10f30d399001b197d1028.tar.xz monzero-core-fb76bc4d98483eec38c10f30d399001b197d1028.zip | |
Merge pull request #10150
1829992 wallet2: warn instead of throw when RingDB doesn't include spend (j-berman)
| -rw-r--r-- | src/wallet/wallet2.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/wallet/wallet2.cpp b/src/wallet/wallet2.cpp index 3cb583afe..aedcaba06 100644 --- a/src/wallet/wallet2.cpp +++ b/src/wallet/wallet2.cpp @@ -9518,8 +9518,11 @@ void wallet2::get_outs(std::vector<std::vector<tools::wallet2::get_outs_entry>> MINFO("Ignoring output " << out << ", too recent"); } } - THROW_WALLET_EXCEPTION_IF(!own_found, error::wallet_internal_error, - "Known ring does not include the spent output: " + std::to_string(td.m_global_output_index)); + if (!own_found) + { + MWARNING("Known ring does not include the spent output: " + std::to_string(td.m_global_output_index) + + ", there may have been a reorg that moved the spent output's position in the chain"); + } } } |
