Skip to content

Commit 4da243b

Browse files
committed
qt: show own outputs on PSBT signing window
1 parent f0758d8 commit 4da243b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/qt/psbtoperationsdialog.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,8 @@ std::string PSBTOperationsDialog::renderTransaction(const PartiallySignedTransac
182182
tx_description.append(tr(" * Sends %1 to %2")
183183
.arg(BitcoinUnits::formatWithUnit(BitcoinUnit::BTC, out.nValue))
184184
.arg(QString::fromStdString(EncodeDestination(address))));
185+
// Check if the address is one of ours
186+
if (m_wallet_model != nullptr && m_wallet_model->wallet().txoutIsMine(out)) tx_description.append(" (" + tr("own address") + ")");
185187
tx_description.append("<br>");
186188
}
187189

0 commit comments

Comments
 (0)