diff options
author | unknown <prayank23@outlook.com> | 2021-04-14 01:21:49 +0530 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2021-05-22 10:45:20 +0200 |
commit | 46320ba72f80dd865b05bbfe2654cde124859881 (patch) | |
tree | 894e3491f65adcfd8b905bdc760fdd8f0613d36b /src/qt | |
parent | f2a88986a18f197f6a4690f5dcca248f6b6170e2 (diff) | |
download | bitcoin-46320ba72f80dd865b05bbfe2654cde124859881.tar.xz |
Remove user input from URI error message
+ Detailed error messages for invalid address
+ Used `IsValidDestination` instead of `IsValidDestinationString`
+ Referred to https://github.com/bitcoin/bitcoin/pull/20832 for solution
Github-Pull: bitcoin-core/gui#280
Rebased-From: 3bad0b3fada9ab7c5b03d31dc33d72654c1ba2be
Diffstat (limited to 'src/qt')
-rw-r--r-- | src/qt/paymentserver.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qt/paymentserver.cpp b/src/qt/paymentserver.cpp index 6c2db52f63..066857568d 100644 --- a/src/qt/paymentserver.cpp +++ b/src/qt/paymentserver.cpp @@ -241,7 +241,7 @@ void PaymentServer::handleURIOrFile(const QString& s) tr("If you are receiving this error you should request the merchant provide a BIP21 compatible URI."), CClientUIInterface::ICON_WARNING); } - Q_EMIT message(tr("URI handling"), tr("Invalid payment address %1").arg(recipient.address), + Q_EMIT message(tr("URI handling"), tr("Invalid payment address"), CClientUIInterface::MSG_ERROR); } else |