Merge pull request #10086

1dbb4a7 wallet2: warn instead of throw when RingDB doesn't include spend (j-berman)
This commit is contained in:
luigi1111 2025-10-07 15:15:23 -04:00
commit 44b242d56f
No known key found for this signature in database
GPG Key ID: F4ACA0183641E010

View File

@ -9300,8 +9300,11 @@ void wallet2::get_outs(std::vector<std::vector<tools::wallet2::get_outs_entry>>
MINFO("Ignoring output " << out << ", too recent"); MINFO("Ignoring output " << out << ", too recent");
} }
} }
THROW_WALLET_EXCEPTION_IF(!own_found, error::wallet_internal_error, if (!own_found)
"Known ring does not include the spent output: " + std::to_string(td.m_global_output_index)); {
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");
}
} }
} }