File tree 1 file changed +6
-2
lines changed
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 1
1
// Copyright (c) 2011-2019 The Bitcoin Core developers
2
2
// Copyright (c) 2011-2019 The Particl developers
3
- // Copyright (c) 2018-2019 Veil developers
3
+ // Copyright (c) 2018-2021 Veil developers
4
4
// Distributed under the MIT software license, see the accompanying
5
5
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
6
6
@@ -411,7 +411,11 @@ QList<TransactionRecord> TransactionRecord::decomposeTransaction(const interface
411
411
if (wtx.txout_address_is_mine [i]) {
412
412
// Received by Bitcoin Address
413
413
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 );
415
419
} else {
416
420
// Received by IP connection (deprecated features), or a multisignature or other non-simple transaction
417
421
sub.type = TransactionRecord::RecvFromOther;
You can’t perform that action at this time.
0 commit comments