From f607a02dae1174c109d1de729eb7006ca6ab8e1f Mon Sep 17 00:00:00 2001 From: selsta Date: Fri, 2 Oct 2026 20:05:14 +0200 Subject: [PATCH] simplewallet: classify payment IDs by their payload (cherry picked from commit 7dba0c8c786e44b3c71d1e214bfdf92ae3cf05a1) --- src/simplewallet/simplewallet.cpp | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/simplewallet/simplewallet.cpp b/src/simplewallet/simplewallet.cpp index eb5aa8372..ab8907195 100644 --- a/src/simplewallet/simplewallet.cpp +++ b/src/simplewallet/simplewallet.cpp @@ -7975,15 +7975,7 @@ bool simple_wallet::accept_loaded_tx(const std::function 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"); }