diff options
author | Hernan Marino <hmarino@gmail.com> | 2023-06-21 02:36:41 -0300 |
---|---|---|
committer | Hernan Marino <hmarino@gmail.com> | 2023-06-21 02:48:55 -0300 |
commit | 4da243ba023f2987e97fc62886c6ebc70d6ee50a (patch) | |
tree | 4816332b11eb7f636cd76bcdbe170c41f8a166ca /src/qt/psbtoperationsdialog.cpp | |
parent | f0758d8a6696657269d9c057e7aa079ffa9e1c16 (diff) | |
download | bitcoin-4da243ba023f2987e97fc62886c6ebc70d6ee50a.tar.xz |
qt: show own outputs on PSBT signing window
Diffstat (limited to 'src/qt/psbtoperationsdialog.cpp')
-rw-r--r-- | src/qt/psbtoperationsdialog.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/qt/psbtoperationsdialog.cpp b/src/qt/psbtoperationsdialog.cpp index fe52e11157..26f1696de1 100644 --- a/src/qt/psbtoperationsdialog.cpp +++ b/src/qt/psbtoperationsdialog.cpp @@ -182,6 +182,8 @@ std::string PSBTOperationsDialog::renderTransaction(const PartiallySignedTransac tx_description.append(tr(" * Sends %1 to %2") .arg(BitcoinUnits::formatWithUnit(BitcoinUnit::BTC, out.nValue)) .arg(QString::fromStdString(EncodeDestination(address)))); + // Check if the address is one of ours + if (m_wallet_model != nullptr && m_wallet_model->wallet().txoutIsMine(out)) tx_description.append(" (" + tr("own address") + ")"); tx_description.append("<br>"); } |