simplewallet: classify payment IDs by their payload

(cherry picked from commit 7dba0c8c786e44b3c71d1e214bfdf92ae3cf05a1)
This commit is contained in:
selsta
2026-10-04 18:50:25 -04:00
committed by such-gitea
parent c7acabc641
commit f607a02dae
+1 -9
View File
@@ -7975,15 +7975,7 @@ bool simple_wallet::accept_loaded_tx(const std::function<size_t()> get_num_txes,
if (!payment_id_string.empty())
payment_id_string += ", ";
// if none of the addresses are integrated addresses, it's a dummy one
bool is_dummy = true;
for (const auto &e: cd.dests)
if (e.is_integrated)
is_dummy = false;
CHECK_AND_ASSERT_MES(is_dummy == (payment_id8 == crypto::null_hash8), false, "Bad loaded tx: mismatched payment ID info");
if (is_dummy)
if (payment_id8 == crypto::null_hash8)
{
payment_id_string += std::string("dummy encrypted payment ID");
}