Skip to content

Commit

Permalink
Namecoin / Qt: don't hide name ops sent to change addresses
Browse files Browse the repository at this point in the history
This particularly matters because the name_new RPC method sends to a
change address by default, so if you issued a name_new, it would never
show up in the Transactions tab.
  • Loading branch information
Jeremy Rand committed Mar 24, 2024
1 parent 05767a2 commit 21fe6d3
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/qt/transactionrecord.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,14 @@ QList<TransactionRecord> TransactionRecord::decomposeTransaction(const interface
// Change is only really possible if we're the sender
// Otherwise, someone just sent bitcoins to a change address, which should be shown
if (wtx.txout_is_change[i]) {
// Name credits sent to change addresses should not be skipped
if (nNameCredit && CNameScript::isNameScript(txout.scriptPubKey)) {
nameSub.debit = nNet;
nameSub.idx = i;
nameSub.involvesWatchAddress = involvesWatchAddress;
parts.append(nameSub);
}

continue;
}

Expand Down

0 comments on commit 21fe6d3

Please sign in to comment.