- ensure that user-defined address labels are shown in the sendcoins dialog, when using bitcoin: URIs or insecure payments (no changes to the secure payments UI)
- favors supplied labels over user-defined ones from addressbook
Bitcoin-Qt: show address labels when using bitcoin: URIs #2994
pull Diapolo wants to merge 1 commits into bitcoin:master from Diapolo:URI_label changing 2 files +24 −7-
Diapolo commented at 9:05 AM on September 14, 2013: none
-
Diapolo commented at 12:29 PM on September 17, 2013: none
Updated to prefer user-defined labels over supplied ones, so saved labels in the users address book are not overwritten.
-
Diapolo commented at 10:06 AM on September 21, 2013: none
Rebased to fix a merge conflict.
-
laanwj commented at 7:49 AM on September 28, 2013: member
I'm not so sure about this. I'd like it to show the merchant's specified information at least in the payment form. When will this be triggered? The merchant shouldn't be reusing addresses in the first place for secure payments.
Also how does this fit into avoiding address reuse and deprecating the address book into a list of historically used addresses? We should not provide any special conveniences for reused addresses (and later on, probably associate labels with specific transactions not addresses).
-
Diapolo commented at 1:28 PM on September 28, 2013: none
@laanwj This change just ensures that address labels, that ARE in our address book are shown, when using a normal bitcoin: URI or insecure payments. And because of that ensures we don't overwrite labels in the users address book.
So for secure payments there is no change at all, we will see the merchant displayed and no address or label in the sendcoinsdialog. I'm not sure if I'm with you, that this change is related to address re-use at all, it just brings our normal sendcoins mechanism (chose address -> label from address book is displayed in sendcoins) into play when using URIs or insecure payments.
-
Diapolo commented at 6:41 AM on October 2, 2013: none
Rebased and fixed a merge-conflict.
-
laanwj commented at 11:57 AM on October 9, 2013: member
I'm just not happy that this adds more special cases, more complexity to the address book code, even though nothing is really broken.
-
Diapolo commented at 12:06 PM on October 9, 2013: none
So to be clear, you think it's fine if some URI or payment-request is overwriting your user-defined labels? It's also fine to not recognize it's an address that is in your addressbook?
The other way around, if an URI doesn't specify a label currently our addressbook isn't even searched for a label ;). Thast is what I could change this pull to, so we have at least same functionality as when using sendcoins ourself.
-
laanwj commented at 12:11 PM on October 9, 2013: member
Yes, I think the two should be separate. When opening a bitcoin URL, the program should display the information from the URL. After selecting an address from the address book, it should display the label from the address book. These are disparate sources of recipient information, so trying to combine them will only confuse things.
-
Diapolo commented at 12:50 PM on October 11, 2013: none
Would you agree to display our user-defined label, if the URI or payment-request doesn't contain any information?
-
6581b893af
Bitcoin-Qt: show address labels when using bitcoin: URIs
- ensure that user-defined address labels are shown in the sendcoins dialog, when using bitcoin: URIs or insecure payments (no changes to the secure payments UI) - favors supplied labels over user-defined ones from addressbook
-
Diapolo commented at 1:37 PM on October 15, 2013: none
Updated: Changed back so that supplied labels override user-defined ones, but displays user-defined labels, if there are any and none was supplied.
-
BitcoinPullTester commented at 2:29 PM on October 15, 2013: none
Automatic sanity-testing: PASSED, see http://jenkins.bluematt.me/pull-tester/6581b893af9e8aed9aeabae87041aaf0faccd49b for binaries and test log. This test script verifies pulls every time they are updated. It, however, dies sometimes and fails to test properly. If you are waiting on a test, please check timestamps to verify that the test.log is moving at http://jenkins.bluematt.me/pull-tester/current/ Contact BlueMatt on freenode if something looks broken.
-
Diapolo commented at 7:16 AM on October 16, 2013: none
Yes that's fine then, I'll perhaps just introduce the
updateLabel()function in another pull, because I remember it was a pain looking for that code ^^. - Diapolo closed this on Oct 16, 2013
- Diapolo deleted the branch on Oct 16, 2013
-
laanwj commented at 10:52 AM on October 16, 2013: member
Yes, that's fine -- though be careful touching any of the address book view stuff, as I'm now working on reorganizing it as I planned before. Finally making a real ReceiveCoinsDialog that doesn't show a list of receiving addresses but a form to request payment.
- DrahtBot locked this on Sep 8, 2021