From 352d78e4c37ea60b6ea542c07142c1bb33c1db45 Mon Sep 17 00:00:00 2001 From: codeofalltrades Date: Mon, 17 May 2021 13:29:08 -0500 Subject: [PATCH] transaction list - handle receive from zerocoin transactions --- src/qt/transactionrecord.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/qt/transactionrecord.cpp b/src/qt/transactionrecord.cpp index 85c3ad02f7..d6dd5d5d53 100644 --- a/src/qt/transactionrecord.cpp +++ b/src/qt/transactionrecord.cpp @@ -1,6 +1,6 @@ // Copyright (c) 2011-2019 The Bitcoin Core developers // Copyright (c) 2011-2019 The Particl developers -// Copyright (c) 2018-2019 Veil developers +// Copyright (c) 2018-2021 Veil developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. @@ -411,7 +411,11 @@ QList TransactionRecord::decomposeTransaction(const interface if (wtx.txout_address_is_mine[i]) { // Received by Bitcoin Address sub.type = TransactionRecord::RecvWithAddress; - sub.address = EncodeDestination(wtx.txout_address[i]); + bool fBech32 = false; + if (boost::get(&wtx.txout_address[i])){ + fBech32 = true; + } + sub.address = EncodeDestination(wtx.txout_address[i], fBech32); } else { // Received by IP connection (deprecated features), or a multisignature or other non-simple transaction sub.type = TransactionRecord::RecvFromOther;