mirror of
https://github.com/Retropex/bitcoin.git
synced 2025-05-28 21:12:29 +02:00
qt: show own outputs on PSBT signing window
This commit is contained in:
parent
f0758d8a66
commit
4da243ba02
@ -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>");
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user