Merge pull request #10150

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

View File

@ -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");
}
}
}