Skip to content

Commit 352d78e

Browse files
transaction list - handle receive from zerocoin transactions
1 parent 3140a94 commit 352d78e

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/qt/transactionrecord.cpp

+6-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Copyright (c) 2011-2019 The Bitcoin Core developers
22
// Copyright (c) 2011-2019 The Particl developers
3-
// Copyright (c) 2018-2019 Veil developers
3+
// Copyright (c) 2018-2021 Veil developers
44
// Distributed under the MIT software license, see the accompanying
55
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
66

@@ -411,7 +411,11 @@ QList<TransactionRecord> TransactionRecord::decomposeTransaction(const interface
411411
if (wtx.txout_address_is_mine[i]) {
412412
// Received by Bitcoin Address
413413
sub.type = TransactionRecord::RecvWithAddress;
414-
sub.address = EncodeDestination(wtx.txout_address[i]);
414+
bool fBech32 = false;
415+
if (boost::get<CScriptID>(&wtx.txout_address[i])){
416+
fBech32 = true;
417+
}
418+
sub.address = EncodeDestination(wtx.txout_address[i], fBech32);
415419
} else {
416420
// Received by IP connection (deprecated features), or a multisignature or other non-simple transaction
417421
sub.type = TransactionRecord::RecvFromOther;

0 commit comments

Comments
 (0)