From e1ee3ffd1925114d589a2b196c782c58ef4f6510 Mon Sep 17 00:00:00 2001 From: sowle Date: Fri, 12 Jun 2020 16:36:38 +0300 Subject: [PATCH] another attempt to fix #152 --- src/wallet/wallet2.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/wallet/wallet2.cpp b/src/wallet/wallet2.cpp index cd7e22f4..7dd7a655 100644 --- a/src/wallet/wallet2.cpp +++ b/src/wallet/wallet2.cpp @@ -544,6 +544,12 @@ void wallet2::prepare_wti_decrypted_attachments(wallet_public::wallet_transfer_i { PROFILE_FUNC("wallet2::prepare_wti_decrypted_attachments"); + if (!wti.payment_id.empty()) + { + LOG_ERROR("wti.payment_id is expected to be empty. Go ahead."); + } + get_payment_id_from_tx(decrypted_att, wti.payment_id); + if (wti.is_income) { account_public_address sender_address = AUTO_VAL_INIT(sender_address);