mirror of
https://github.com/wownero/wownero.git
synced 2026-10-17 07:31:35 +02:00
simplewallet: classify payment IDs by their payload
(cherry picked from commit 7dba0c8c786e44b3c71d1e214bfdf92ae3cf05a1)
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user