-
Notifications
You must be signed in to change notification settings - Fork 288
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix PaymentServer::handleURIOrFile warning message #225
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
utACK 2434d00, no any testing, just built on Debian Sid with Qt 5.15.2
Updated 2434d00 -> 45ebd9e (pr225.01 -> pr225.02):
|
@prayank23 Do you mind reviewing this PR? |
If address validity is not checked, can it be the cause for parsing failure?
Invalid address case is covered by Line 252 in 4a26705
|
Internally the
I think we can. |
GUIUtil::parseBitcoinURI does not check address validity. Therefore, an invalid address cannot cause parsing failure. An invalid address case is covered by its own message "Invalid payment address %1".
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
re-utACK 5b20d46 after rebase.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code Review ACK 5b20d46 🥃
@hebasto Can you share any examples that I can try for which |
I can't. It looks like this code is never executed due to checks in earlier stages, e.g. in Closing for now. |
GUIUtil::parseBitcoinURI
does not check address validity. Therefore, an invalid address cannot cause parsing failure.An invalid address case is covered by its own message.
This PR fixes the warning messages.