Skip to content

Commit

Permalink
transaction list - handle receive from zerocoin transactions
Browse files Browse the repository at this point in the history
  • Loading branch information
codeofalltrades committed May 17, 2021
1 parent 3140a94 commit 352d78e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/qt/transactionrecord.cpp
Original file line number Diff line number Diff line change
@@ -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.

Expand Down Expand Up @@ -411,7 +411,11 @@ QList<TransactionRecord> 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<CScriptID>(&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;
Expand Down

0 comments on commit 352d78e

Please sign in to comment.