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
  1. Diapolo commented at 9:05 AM on September 14, 2013: none
    • 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
  2. 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.

  3. Diapolo commented at 10:06 AM on September 21, 2013: none

    Rebased to fix a merge conflict.

  4. Diapolo commented at 8:14 PM on September 26, 2013: none

    @laanwj ping

  5. 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).

  6. 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.

  7. Diapolo commented at 6:41 AM on October 2, 2013: none

    Rebased and fixed a merge-conflict.

  8. Diapolo commented at 8:28 PM on October 8, 2013: none

    @laanwj I would love to get an agreement on this pull, see my comments above :).

  9. 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.

  10. 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.

  11. 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.

  12. 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?

  13. 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
    6581b893af
  14. 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.

  15. 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.

  16. laanwj commented at 6:48 AM on October 16, 2013: member

    @diapolo agree to close this one? As we want to reduce interaction of payment requests with labels, it makes no sense to show user-defined labels with payment requests in any circumstances.

  17. 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 ^^.

  18. Diapolo closed this on Oct 16, 2013

  19. Diapolo deleted the branch on Oct 16, 2013
  20. 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.

  21. DrahtBot locked this on Sep 8, 2021

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-21 18:16 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me