Skip to content

Commit

Permalink
do not mark stakemints as watch addresses
Browse files Browse the repository at this point in the history
  • Loading branch information
backpacker69 committed Jul 25, 2019
1 parent 4d91225 commit 9093fb8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/qt/transactionrecord.cpp
Expand Up @@ -39,11 +39,13 @@ QList<TransactionRecord> TransactionRecord::decomposeTransaction(const CWallet *
{
TransactionRecord sub(hash, nTime, TransactionRecord::StakeMint, "", -nDebit, wtx.tx->GetValueOut());
CTxDestination address;
CTxOut txout = wtx.tx->vout[1];
const CTxOut& txout = wtx.tx->vout[1];
isminetype mine = wallet->IsMine(txout);

if(ExtractDestination(txout.scriptPubKey, address) && IsMine(*wallet, address))
sub.address = EncodeDestination(address);

sub.involvesWatchAddress = mine & ISMINE_WATCH_ONLY;
parts.append(sub);
}
else if (nNet > 0 || wtx.IsCoinBase())
Expand Down

0 comments on commit 9093fb8

Please sign in to comment.